Metadata-Version: 2.4
Name: europe_pmc
Version: 1.0.1
Summary: Open Access PDF Downloader with EuropePMC
Home-page: https://www.github.com/suqingdong/europe_pmc
Author: suqingdong
Author-email: suqingdong1114@gmail.com
License: MIT License
Classifier: Development Status :: 5 - Production/Stable
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Libraries
Description-Content-Type: text/markdown
Requires-Dist: tqdm
Requires-Dist: click
Requires-Dist: requests
Requires-Dist: simple_loggers
Requires-Dist: human_readable
Requires-Dist: webrequests
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: requires-dist
Dynamic: summary

# Open Access PDF Downloader with EuropePMC

## Installation
```bash
python3 -m pip install europe_pmc
```

## Usage
### CMD
```bash
epmc --help

# single download
epmc 30003000  # PMID
epmc PMC6039336 # PMCID
epmc 10.1007/s13205-018-1330-z # DOI
epmc "Identification of miRNAs and their targets in regulating tuberous root development" # Title

# batch download
epmc 30003000 30003001 30003002

# batch download from a file
epmc pmid.list

# specific output
epmc pmid.list --outdir paper --outfile {pubYear}.{pmid}.{title}.pdf

# multithreads download
epmc pmid.list --threads 4

# list only
epmc pmid.list --list

# show information only
epmc pmid.list --info
```

### Python
```python
from europe_pmc import EuropePMC

pmc = EuropePMC()

r = pmc.fetch('30003000')
r = pmc.fetch('PMC6039336')
r = pmc.fetch('10.1007/s13205-018-1330-z')
print(r.pmid, r.pmcid, r.title)
print(r.data)
r.save()
r.save(outfile='output.pdf')
```
