Giter Site home page Giter Site logo

pubmed-batch-download's Introduction

Pubmed Batch Download

Batch download articles based on PMID (Pubmed ID)

Installation and Set Up

Clone the directory to the desired location, then run

./setup.sh

Program Usage

Use the program via

ruby pubmedid2pdf.rb [comma separated list of pubmed IDs]

Each run will download the enumerated files to folder titled "PDF" inside the application directory, with each pdf named the PMID correpsonding to the article. Articles already within the PDF folder will not be downloaded again.

Example:

ruby pubmedid2pdf.rb 123,124,125,23923,111

will place the files 123.pdf, 124.pdf, 125.pdf, 23923.pdf, and 111.pdf inside of the PDF folder, assuming all were found

Description of included files:

pdfetch.rb: Ruby script that crawls the web using mechanize and downloads the pdf from the appropriate source

pubmedid2pdf: Ruby script that acts as a wrapper for pdfetch.rb, calling it for each pubmed ID passed into the program from the terminal

PDF: Folder that the PDF's will be downloaded to

Notes:

This program is an updated version of the script written by Edoardo "Dado" Marcora, Ph.D. This program uses an updated version of the wrapper written by bio-geeks.

Updates were made by Bill Greenwald to allow the program to run under Ruby version 2.0 and onward (currently runs on version 2.1.2) and to support the introduction of iFrames into the webstandard.

pubmed-batch-download's People

Contributors

aguynamedryan avatar

Watchers

James Cloos avatar Gnanavel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.