gijswobben / pymed

PyMed is a Python library that provides access to PubMed.
MIT License
191 stars 111 forks source link

Bugfix/article ID parsing issue #30

Open iacopy opened 4 years ago

iacopy commented 4 years ago

Thanks for the useful and well written library!

This minimal fix make the parser returning only the paper pubmed id. Before, also the ids of the citations papers were returned.(they are within the ReferenceList element of the xml).

Fixes #22

An alternative XPath to be used: path = ".//PubmedData/ArticleIdList/ArticleId[@IdType='pubmed']"

All Submissions:

New Feature Submissions:

  1. [ ] Does your submission pass tests (if applicable)?
  2. [x] Have you lint your code locally prior to submission (use flake8)?

Changes to Core Features: