Is there anyway to obtain the full abstract from a 'PUBmed' article using bioPython

0 votes

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"]
Aug 23, 2018 in Python by charlie_brown
• 7,710 points
149 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Hey Charlie, it's certainly possible to pull off what you are trying using BioPython. If you can implement this section as mention in the documentation then you should be able to pull it off cheers

link: http://www.biopython.org/DIST/docs/tutorial/Tutorial.html#sec142

answered Aug 23, 2018 by ariaholic
• 7,320 points

Related Questions In Python

0 votes
1 answer

How to get the return value from a thread using python?

You don't need to change your existing ...READ MORE

answered Dec 3, 2018 in Python by Nymeria
• 3,500 points

edited Dec 19, 2018 by Nymeria 3,684 views
0 votes
1 answer

What is the recommended way to randomize a list of strings using Python?

Hi. Nice question. Here is the simplified answer ...READ MORE

answered Jan 18 in Python by Nymeria
• 3,500 points
30 views
0 votes
1 answer

How to use read a WSDL file from the file system using Python suds?

Hi, good question. It is a very simple ...READ MORE

answered Jan 21 in Python by Nymeria
• 3,500 points
151 views
0 votes
1 answer

how can i count the items in a list?

suppose you have a list a = [0,1,2,3,4,5,6,7,8,9,10] now ...READ MORE

answered May 2 in Python by Mohammad
• 1,400 points
19 views
0 votes
1 answer

How to get the size of a string in Python?

If you are talking about the length ...READ MORE

answered Jun 4, 2018 in Python by ariaholic
• 7,320 points
47 views
0 votes
1 answer

How to extract or split characters from number strings using Pandas?

You could just simply use a conversion ...READ MORE

answered Sep 18, 2018 in Python by ariaholic
• 7,320 points
48 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.