You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A report the first report of this
While iterating on articles resulting from a PubMed query, I noticed that some article ids have parsing issues.
For instance :
Query : ((Haliaeetus leucocephalus[Title/Abstract])) AND ((prey[Title/Abstract]) OR (diet[Title/Abstract]))
Returns (when printing first 10 results) :
pubmed_id = '22822430\n18959310\n21310968\n21295371\n20439737'
abstract = ('Bald eagles (Haliaeetus leucocephalus) are recovering from severe population declines...
To Reproduce
Steps to reproduce the behavior:
Go to '...'
Click on '....'
Scroll down to '....'
See error
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
OS: [e.g. Windows / Linux]
Version [e.g. Python 3.7.0]
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Fix#1
This fix avoids returning also the IDs of cited
papers
(they are within the ReferenceList element of the xml).
Note: this issue was tracked as 22 on the original repository (now archived)
An alternative XPath to be used:
path = ".//PubmedData/ArticleIdList/ArticleId[@idtype='pubmed']"
See gijswobben#22
Describe the bug
A report the first report of this
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: