lukasschwab / arxiv.py

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

Get affiliations for each authors #34

Closed HaoyangLiHarrison closed 4 years ago

HaoyangLiHarrison commented 5 years ago

Hi:

It looks like only the lead author's affiliation is returned. Is it possible to get the affiliations for each authors?

Thanks, H

lukasschwab commented 5 years ago

Hi! Thanks for the suggestion.

Can you provide me with the arXiv ID of a paper that has multiple authors with listed affiliations?

This will help me evaluate whether the API exposes data in question.

shizhediao commented 4 years ago

Hi I find that usually, the affiliation is None. Is it normal or not? Thanks

lukasschwab commented 4 years ago

@shizhediao I'd need to see a code sample to know for sure; my guess would be that most of the papers you're seeing were just not uploaded to arXiv with affiliation info.

For example, among the 1000 papers in this query, only 50 have affiliations:

>>> import arxiv
>>> sum([paper.affiliation != 'None' for paper in arxiv.query("test", max_results=1000)])
50
shizhediao commented 4 years ago

Yes, you are right. It is because most of the papers do not upload affiliation info. Maybe I need to find another way to get this information. Thanks!