lukasschwab / arxiv.py

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

HTTPError: HTTP Error 403: Forbidden #44

Closed empty-id closed 4 years ago

empty-id commented 4 years ago

Describe the bug Download error.

HTTPError: HTTP Error 403: Forbidden

To Reproduce

arxiv.download({'pdf_url':'http://arxiv.org/pdf/1706.03762'})

Versions

lukasschwab commented 4 years ago

Hmm, I can't reproduce this error:

>>> import arxiv
>>> arxiv.download({'pdf_url':'http://arxiv.org/pdf/1706.03762'})

'./1706.03762.UNTITLED.pdf'

Please try the following:

from urllib.request import urlretrieve
urlretrievel('http://arxiv.org/pdf/1706.03762')

urlretrieve is the underlying file download utility used in this library. If this download fails, the issue is with urlretrieve (or with some other aspect of your connevtion to arXiv); if downloading with urlretrieve succeeds, the problem is with this package and requires further investigation.