python module to download any paper by DOI
Entering edit mode
4.7 years ago
akarazeev • 0

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.

python doi download pubmed scihub • 5.9k views
Entering edit mode
4.7 years ago
Joe 20k

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 (

Entering edit mode
4.3 years ago

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.


Login before adding your answer.

Traffic: 1420 users visited in the last hour
Help About
Access RSS

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6