from metapub import PubMedFetcher pmids = [<your list of ids>] for pmid in pmids: article = fetch.article_by_id(pmid) print(article.abstract)