Hi,
So I am attempting to do an esearch like the following in Biopython:
handle = Entrez.esearch(
db="pubmed",
sort="relevance",
term=disease,
mindate=year,
retmode="xml",
)
results = Entrez.read(handle)
handle.close()
How would I go about returning this result as an xml file? Currently results = python dictionary of all the results but I would like to be able to output this as an xml file. So that I can use the file to plot a graph of some kind?
Also, I've put an min date to return the results of a specific year. I would like to know if it's possible to return results for a range of years?