Question: python module to download any paper by DOI
gravatar for akarazeev
18 months ago by
akarazeev0 wrote:

Hi. I am wondering is there any python module that allows to download paper by its doi?

I am familiar with SciHub module ( but there is a problem with captchas.

Probably you know other methods of downloading papers using some API.

I'm ready to pay some money to avoid captchas but personally I don't know any resource that offers this option.

Thank you in advance.

pubmed doi download scihub python • 1.7k views
ADD COMMENTlink modified 13 months ago by Maria_Levchenko60 • written 18 months ago by akarazeev0
gravatar for jrj.healey
18 months ago by
United Kingdom
jrj.healey11k wrote:

It's not a module per se, and isn't specific for DOIs but you could do something like the following:

def getDOI(top_hit):
    """Query the PDB REST API to get an associated DOI/Publication"""
    import requests
        query = requests.get("" + str(top_hit))
        qjson = query.json()
        doi = qjson[top_hit][0]['doi']

        if not doi:
            doi = "No DOI found."

    except KeyError:
        doi = "Key error. ID likely deprecated."

    return doi

I use this code snippet to return DOIs from a PDB ID query. You may be able to chop it up to suit your own needs.

Otherwise take a look at the esearch/efetch options from Bio.Entrez (

ADD COMMENTlink modified 18 months ago • written 18 months ago by jrj.healey11k
gravatar for Maria_Levchenko
13 months ago by
Maria_Levchenko60 wrote:

You could try Europe PMC API to retrieve publication full text via DOI. You would need to first map the DOI to the corresponding PMCID using the search module, and then use the PMCID to retrieve full text XML from the open access subset. Here is an example: search module for the following DOI (10.1371/journal.ppat.1002485) returns PMC3257301 as a PMCID, then fullTextXML module for PMC3257301 retrieves the full text.

ADD COMMENTlink written 13 months ago by Maria_Levchenko60
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 704 users visited in the last hour