Skip to main content

Open Access PDF Downloader with EuropePMC

Project description

Open Access PDF Downloader with EuropePMC

Installation

python3 -m pip install europe_pmc

Usage

CMD

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

from epmc 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')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

europe_pmc-1.0.0.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

europe_pmc-1.0.0-py3-none-any.whl (6.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page