lukasschwab / arxiv.py

Python wrapper for the arXiv API
MIT License
1.07k stars 120 forks source link

Fix #78: extract `result.comment` from `entry.arxiv_comment` #79

Closed lukasschwab closed 3 years ago

lukasschwab commented 3 years ago

Description

Extracts author comment with entry.get('arxiv_comment') rather than entry.get('comment').

Note: should write a new class of unit tests that use stored arXiv API results and confirm that field extraction works as expected; alternatively, can use known papers from the live API.

Testing

>>> import arxiv
>>> results = list(arxiv.Search("testing", max_results=1000).get())
__main__:1: DeprecationWarning: The 'get' method is deprecated, use 'results' instead
>>> [r.comment for r in results]
['8 pages', 'This is a technical report on Morphy software testing tool', None, 'Submitted on behalf of EDAA (http://www.edaa.com/)', ...]

Breaking changes

List any changes that break the API usage supported on master.

None.

Relevant issues

List GitHub issues relevant to this change.

78

Checklist