Skip to content

A Python package to download full article PDFs from OA publications

License

Notifications You must be signed in to change notification settings

ddomingof/PubMed2PDF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PubMed2PDF

A Python package to download PDFs from OA publications in PubMed. The underlying code is forked from https://github.com/billgreenwald/Pubmed-Batch-Download. Downloaded files are located by default in your personal folder under the 'pubmed2pdf' directory.

Installation

pubmed2pdf can be installed from PyPI with the following command in your terminal:

$ python3 -m pip install pubmed2pdf

The latest code can be installed from GitHub with:

$ python3 -m pip install git+https://github.com/ddomingof/PubMed2PDF.git

For developers, the code can be installed with:

$ git clone https://github.com/ddomingof/PubMed2PDF.git
$ cd PubMed2PDF
$ python3 -m pip install -e .

How to Use

PubMed2PDF works by simply typing the list of PubMed identifiers in your command line interface or reading them from a file.

Example from file:

$ python3 -m pubmed2pdf pdf --pmidsfile="/my/path/to/the/file"
$ python3 -m pubmed2pdf pdf --pmids="123, 1234, 12345"

Run the help command to see all functionalities

$ python3 -m pubmed2pdf pdf --help