Skip to content

Commit

Permalink
#134 Requested changes: Update docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
nils-herrmann committed Sep 4, 2024
1 parent db3ad35 commit d50f670
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pubmed_parser/pubmed_web_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def parse_pubmed_web_tree(tree):
'title', 'abstract', 'journal', 'affliation' (string of affiliation with ';' separated),
'authors' (string with ';' separated),
'keywords' (keywords and MeSH terms from an XML -- if MeSH term it will be 'MeSH descriptor':'MeSH name')
'doi', 'year'
'doi', 'pii', 'year', 'language', 'version_id', 'version_date'
"""
if len(tree.xpath("//articletitle")) != 0:
title = " ".join([title.text for title in tree.xpath("//articletitle")])
Expand Down Expand Up @@ -208,6 +208,8 @@ def parse_xml_web(pmid, sleep=None, save_xml=False):
'keywords': 'D000818:Animals;D005075:Biological Evolution;...',
'doi': '10.1126/science.1060852',
'year': '2001',
'version_id': None,
'version_date': None,
'pmid': '11360989'
}
"""
Expand Down

0 comments on commit d50f670

Please sign in to comment.