adsabs / adsabs-dev-api

Developer API service description and example client code
162 stars 58 forks source link

lazy loading of citation field not possible #58

Closed hippke closed 4 years ago

hippke commented 4 years ago

I like to find out which papers cite which of my papers. This works fine:

query = ads.SearchQuery(q="author:hippke,m",)
for paper in query:
    print(paper.bibcode, paper.citation_count, paper.citation)

Unfortunately, it costs me n queries from my rate limit where n is the number of my papers. A solution to use lazy loading was suggested in this issue for exactly my use case. BUT when I add to the ads.SearchQuery:

fl=['bibcode', 'citation_count', 'citation']

I get "None" for the paper.citation instead the list of bibcodes. Any help appreciated!

hippke commented 4 years ago

OK, I tried again - it seems to work fine now. Might have been related to the server problems. This can be closed