arxiv-downloader
is available via PyPi:
pip install arxiv-downloader
We also provide an AUR package:
paru -S arxiv-downloader
Download a PDF using a URL:
arxiv-downloader https://arxiv.org/pdf/2302.06544.pdf
Download a PDF using an ID:
arxiv-downloader 2302.06544
Download a PDF into a directory:
arxiv-downloader https://arxiv.org/pdf/2302.06544.pdf -d ./pdfs
Download a PDF and its source files (as .tar.gz
archive):
arxiv-downloader https://arxiv.org/pdf/2302.06544.pdf -s
To see all available options, use the help command:
arxiv-downloader -h
This will display usage information similar to the following:
usage: arxiv-downloader [-h] [-d DIRECTORY] [-s] [url_or_id]
Download articles from arXiv.
positional arguments:
url_or_id The URL or ID of the arXiv article. (default: None)
options:
-h, --help show this help message and exit
-d DIRECTORY, --directory DIRECTORY
The directory where the article will be downloaded. (default: ./)
-s, --source Also download the source files of the article. (default: False)