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 24, 2018 in Python by charlie_brown
• 7,720 points
3,267 views

1 answer to this question.

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 24, 2018 by aryya
• 7,460 points

Related Questions In Python

0 votes
1 answer

is there a way to send sql query data from redshift and send the data via email to sns?

I resolved this issue using AWS Glue ...READ MORE

answered Nov 21, 2020 in Python by Ruben
• 180 points
1,465 views
0 votes
1 answer

Is there anyway to get the total count of times of a Generator?

Generators are originally created to return an ...READ MORE

answered Nov 6, 2020 in Python by Gitika
• 65,770 points
638 views
0 votes
3 answers

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

FWIW, the multiprocessing module has a nice interface for ...READ MORE

answered Dec 15, 2020 in Python by Roshni
• 10,480 points
107,695 views
0 votes
1 answer
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,422 views
0 votes
1 answer
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 aryya
• 7,460 points
1,369 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 aryya
• 7,460 points
2,053 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP