Skip to content

Instantly share code, notes, and snippets.

@kekeke29341
Created May 14, 2013 12:19
Show Gist options
  • Save kekeke29341/5575487 to your computer and use it in GitHub Desktop.
Save kekeke29341/5575487 to your computer and use it in GitHub Desktop.
BioPythonでPubMed検索~
from Bio import Entrez
Entrez.email = "Your email address"
handle = Entrez.esearch(db="nucleotide", retmax=10, term="cancer")
record = Entrez.read(handle)
handle.close()
record["Count"] >= 2
True
"156535671" in record["IdList"]
True
"156535673" in record["IdList"]
True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment