Skip to content

Instantly share code, notes, and snippets.

@arupgsh
Last active May 22, 2021 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arupgsh/e58117f1faa1d6be057889e53e031103 to your computer and use it in GitHub Desktop.
Save arupgsh/e58117f1faa1d6be057889e53e031103 to your computer and use it in GitHub Desktop.
Get_PMIDs
from Bio import Entrez
Entrez.email = "yourmail@gmail.com"
handle = Entrez.esearch(db="pubmed", term="cancer", retmax="10", sort="relevance", retmode="xml")
records = Entrez.read(handle)
print records["IdList"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment