derzeit nutze ich Biopyhton's Esearch Funktion um aus Pubmed Suchergebnisse zu importieren.
Leider stelle ich fest, dass die Suchergebnisse in Python sich mit denen aus der Websuche unterscheiden.
Ich hab auch schon vergeblich versucht verschiedene Sortiermethoden zu nutzen.
Ich stelle außerdem fest, dass die Anzahl an Suchergebnissen sich bei beiden unterscheidet.
Für den Suchbegriff "sclerosis" erhalte ich in der Websuche folgende Ergebnisse: https://pubmed.ncbi.nlm.nih.gov/?term=s ... _order=asc
In Python dagegen mit folgendem Code:
Code: Alles auswählen
from Bio import Entrez
def search(query):
Entrez.email = 'example@mail.com'
handle = Entrez.esearch(db='pubmed',
sort='relevance',
retmax='10',
retmode='xml',
term=query)
results = Entrez.read(handle)
print(results['Count'])
return results
def fetch_details(id_list):
ids = ','.join(id_list)
Entrez.email = 'example@mail.com'
handle = Entrez.efetch(db='pubmed',
retmode='xml',
id=ids)
results = Entrez.read(handle)
return results
if __name__ == '__main__':
results = search('sclerosis')
id_list = results['IdList']
papers = fetch_details(id_list)
for i, paper in enumerate(papers['PubmedArticle']):
print("%d) %s" % (i + 1, paper['MedlineCitation']['Article']['ArticleTitle']))
161801
1) Prevalence and risk factors of aortic stenosis and aortic sclerosis: a 21-year follow-up of middle-aged men.
2) Atrophy of the ipsilateral mammillary body in unilateral hippocampal sclerosis shown by thin-slice-reconstructed volumetric analysis.
3) Modic Changes (MCs) Associated with Endplate Sclerosis Can Prevent Cage Subsidence in Oblique Lumbar Interbody Fusion (OLIF) Stand-Alone.
4) Aerobic Endurance Exercise Ameliorates Renal Vascular Sclerosis in Aged Mice by Regulating PI3K/AKT/mTOR Signaling Pathway.
5) Hippocampal necrosis and sclerosis in cats: A retrospective study of 35 cases.
6) Predictive value of preoperative statistical parametric mapping of regional glucose metabolism in mesial temporal lobe epilepsy with hippocampal sclerosis.
7) The degree of sclerosis is associated with prognosis in well-differentiated liposarcoma of the retroperitoneum.
8) Sclerosis as a predictive factor for failure after bulbar urethroplasty: a prospective single-centre study.
9) Vestibulovaginal Sclerosis Versus Lichen Sclerosus.
10) Hippocampal sclerosis induced in mice by a <i>Taenia crassiceps</i> metacestode factor.