This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# you need to install Biopython: | |
# pip install biopython | |
# Full discussion: | |
# https://marcobonzanini.wordpress.com/2015/01/12/searching-pubmed-with-python/ | |
from Bio import Entrez | |
def search(query): | |
Entrez.email = '[email protected]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#serach pubmed with a keywword, write specific information on a CSV file using E Utilities | |
from Bio import Entrez | |
import csv | |
def search(query): | |
#provide NCBI your email address | |
Entrez.email = '[email protected]' | |
#get the list of IDs | |
searchHandle = Entrez.esearch(db='pubmed', |