I have a list of pubmed IDs and am trying to use literally any tool to access any 1) paper authors 2) date of publication and 3) MESH terms (or other identifying characteristics, e.g. field of study etc) for each paper. Ideally would end up with everything in csv or JSON format, but I'll take whatever.
Looking here (How do I get full text AND MeSH terms from Entrez on the PMC database in biopython?) but having a hard time reproducing the solution. Can anyone out there assist? Been playing with biopython entrez library but having limited luck. Example code to get list of 10 random IDs:
get list of IDs
def search(query): Entrez.email = 'email@example.com' handle = Entrez.esearch(db='pubmed', sort='relevance', retmax='10', retmode='xml', term=query) results = Entrez.read(handle) return(results)
id_list = search('infectious disease')