Giter Site home page Giter Site logo

Comments (7)

billgreenwald avatar billgreenwald commented on July 20, 2024

Could you paste the full error you are receiving, and the command you run?

from pubmed-batch-download.

dmcalli2 avatar dmcalli2 commented on July 20, 2024

Thanks for the quick reply!
Some of the error has gone of the top of my terminal, so I cant paste the full list.
However, here is an example of the output for a successful and unsuccessful PMID.
** fetching reprint using the 'generic citation labelled' finder...
** fetching of reprint 24481874 succeeded
Trying to fetch pmid 25282519
Trying genericCitationLabelled
Trying pubmed_central
Trying acsPublications
Trying uchicagoPress
** fetching of reprint 25282519 failed from error list index out of range

The command was:-
python2.7 fetch_pdfs.py -pmf mypmf.txt

I am running Python 2.7 in Ubuntu from within Windows Subsystem for Linux (WSL).

from pubmed-batch-download.

billgreenwald avatar billgreenwald commented on July 20, 2024

I had a typo from some debugging left, it would seem. I believe i fixed it, and 25282519 downloaded fine as a test. Let me know if the new version works.

from pubmed-batch-download.

dmcalli2 avatar dmcalli2 commented on July 20, 2024

Works perfectly.
Thanks very much, and thanks for sharing your code.

from pubmed-batch-download.

nmehra222 avatar nmehra222 commented on July 20, 2024

Hi Bill,
Thanks so much for making this tool. I am also having the index out of range error. I am able to download about 7 of the 50 papers I am intending to, with roughly half of the papers receiving this error. Here's an example of the error message I'm getting:
Trying to fetch pmid 29930241
Trying genericCitationLabelled
Trying pubmed_central_v1
Trying acsPublications
Trying uchicagoPress
Trying nejm
Trying futureMedicine
Trying science_direct
** fetching of reprint 29930241 failed from error list index out of range

I am working with a pmf and am not sure where the error is coming from.
Thanks!

from pubmed-batch-download.

billgreenwald avatar billgreenwald commented on July 20, 2024

Hey @nmehra222, sorry for the slow response. I tried to get your example PMID and got a "bad handshake" error from the site instead; it could be because I am out of the country and thus have some, though I don't think that is why. Can you post or send a link to your pmf file so that I can try using it for error checking? Thanks!

from pubmed-batch-download.

nmehra222 avatar nmehra222 commented on July 20, 2024

I actually tried again, and was able to download the paper without a problem. Thanks for your help!

from pubmed-batch-download.

Related Issues (20)

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.