Open lukasschwab opened 3 years ago
A clear and concise description of what the bug is.
Author affiliations are available in raw arXiv API feeds, but are not exposed by this package's Result objects.
Result
Steps to reproduce the behavior; ideally, include a code snippet.
Apparent for any result set.
(Result)._raw.arxiv_affiliation
A clear and concise description of what you expected to happen.
Author affiliations should be exposed by the Result.Author class.
Result.Author
python
arxiv.py
Add any other context about the problem here.
This is a long-open issue in feedparser, perhaps open since 2015: https://github.com/kurtmckee/feedparser/issues/24. There's a detailed breakdown of the interaction with arXiv results here: https://github.com/kurtmckee/feedparser/issues/145#issuecomment-821762233. I suspect arXiv will release their JSON API ––and this client library will be rewritten to use the JSON API––before this feedparser bug is resolved.
feedparser
This client library could expose the single author affiliation extracted by feedparser, but this has negative impacts:
If the single author affiliation is useful in your application, despite the noted downsides, access it with (Result)._raw.get('arxiv_affiliation').
(Result)._raw.get('arxiv_affiliation')
Description
Author affiliations are available in raw arXiv API feeds, but are not exposed by this package's
Result
objects.Steps to reproduce
Apparent for any result set.
(Result)._raw.arxiv_affiliation
is often defined, but it's a single string––the affiliation of one author among several.Expected behavior
Author affiliations should be exposed by the
Result.Author
class.Versions
python
version: *arxiv.py
version: >= 1.0.0Additional context
This is a long-open issue in
feedparser
, perhaps open since 2015: https://github.com/kurtmckee/feedparser/issues/24. There's a detailed breakdown of the interaction with arXiv results here: https://github.com/kurtmckee/feedparser/issues/145#issuecomment-821762233. I suspect arXiv will release their JSON API ––and this client library will be rewritten to use the JSON API––before thisfeedparser
bug is resolved.This client library could expose the single author affiliation extracted by
feedparser
, but this has negative impacts:If the single author affiliation is useful in your application, despite the noted downsides, access it with
(Result)._raw.get('arxiv_affiliation')
.