lukasschwab / arxiv.py

Python wrapper for the arXiv API
MIT License
1.11k stars 123 forks source link

res: return raw ID #93

Closed nschloe closed 2 years ago

nschloe commented 2 years ago

A results entry has

entry_id: "http://arxiv.org/abs/2206.14804v1"

It's sometimes useful to return the raw ID, too, i.e., 2206.14804 or 2206.14804v1v1.

lukasschwab commented 2 years ago

Hello––I think get_short_id does what you want: http://lukasschwab.me/arxiv.py/index.html#Result.get_short_id

nschloe commented 2 years ago

Indeed, thanks!