lukasschwab / arxiv.py

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

Empty response #157

Closed MohamedAliRashad closed 7 months ago

MohamedAliRashad commented 7 months ago

No papers get fetched:

import arxiv

client = arxiv.Client()

search = arxiv.Search(
  query = "Quantum Computing",
  max_results = 100,
  sort_by = arxiv.SortCriterion.SubmittedDate
)

for result in client.results(search):
  print(result.title)
lukasschwab commented 7 months ago

Thanks for the concise example! Unfortunately, I can't reproduce this issue locally — the code snippet you provided works.

This may be an example of flakiness in the underlying API; see https://github.com/lukasschwab/arxiv.py/issues/129. Mind confirming your Python version and arxiv package version for me?

MohamedAliRashad commented 7 months ago

@lukasschwab Interstingly enough it worked with me after i submitted the bug. It's maybe a problem with Arxiv API.