Skip to content
Gus Hahn-Powell edited this page Jun 17, 2016 · 8 revisions

How can I download an nxml file from the OpenAccess subset of PubMed?

Here are two solutions:

  1. Use a url of this format: http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&id=<pmc id sans pmc goes here>&retmode=xml
  • If we wanted to retrieve PMC26816343, this would be the formatted url:
    • http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&id=26816343&retmode=xml
  1. You can run this Python (2.7 or 3.x) script: https://gist.github.com/myedibleenso/f233359445461a71ad37017393fe921f