This Python script fetches PubMed articles related to fetch articles related on AI/ML/DL.
The script searches PubMed for relevant articles, extracts metadata (PubMed ID, title, abstract, URL), and saves results to an Excel file.
- Python 3.x
- Libraries:
biopython
,pandas
(pip install biopython pandas
) - A valid email for NCBI Entrez API access
- Optional: NCBI API key for higher request limits
- Update the
Entrez.email
field with your email. - Optionally, add your NCBI API key.
- Run the script:
python fetch_pubmed_articles.py
- Results are saved