'Most up-to-date python PubMed API
I am trying to get all the abstracts of all articles related to the search term "alzheimer" from PubMed Central. Doing a search through the PMC website (https://pubmed.ncbi.nlm.nih.gov/?term=alzheimer&size=200&filter=simsearch1.fha), I see that there are around 175k results. But, I tried the same using metapub and biopython and I got 130k results. How do I retrieve that other 45k? Here is what I've tried so far:
biopython
from Bio import Entrez
Entrez.email = '[email protected]'
handle = Entrez.esearch(db="pubmed", retmax=10, term='Alzheimer')
record = Entrez.read(handle)
handle.close()
# record['Count'] = '129443'
and metapub
from metapub import PubMedFetcher
fetch = PubMedFetcher()
pmid_list = fetch.pmids_for_query('Alzheimer', retmax = 500000)
#len(pmid_list) = 129443
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
