Hi guys, I've been working on a college project which involves me querying a pubmed article. This code is able to tell me if the article has an abstract but I can't find any documentation on how to actually return the abstract. Is it possible using biopython? if it isn't is there another way?
Here's my piece of code
from Bio import Entrez
Entrez.email = "kuharrw@hiram.edu" # Always tell NCBI who you are
handle = Entrez.esearch(db="pubmed", term="bacteria")
record = Entrez.read(handle)
list = record["IdList"]
print len(list)
for index in range(0, len(list)):
listId = list[index]
handle = Entrez.esummary(db="pubmed", id=listId)
record = Entrez.read(handle)
print index
print record[0]["Title"]
print record[0]["HasAbstract"]