Command-line arXiv Papers Downloader. Citation extraction and PDF naming automation.
Disclaimer: This is a highly-opinionated CLI tool for downloading papers. It priorities ease of use for researchers. Obviously, this is not an official project.
What does it do?
- Support downloading papers from ArXiv, CVPR, ICCV, WACV via simple CLI.
- Support downloading speedup by using aria2c.
- Retrieve the paper's metadata such as:
- Title, Abstract, Year
- Comments (Conference acceptance info)
- Repository URLs
- Automatically maintain a list of local papers and their metadata in a JSON file.
- Configure the desired download destination via an environment variable or a command-line argument.
- All downloaded papers will have standardized filename for easy browsing.
- Save time and effort to download and organize papers on your machine.
- Speedup downloading process by using multiple parallel connections.
- Local paper list would be handy for quick local lookup, making notes, and doing citations.
How to install it?
This is a command-line tool, simply use
pip to install the package globally, then you are good to go!
python3 -m pip install --upgrade arxiv-dl
NOTE: After installation, you need to ensure the installation path is included in your PATH variable. If you encounter any difficulty finding / setting the PATH, there is this recommended way of installing stand alone command line tools, kindly follow its instruction when installing
Optionally, install aria2c for download speedup.
brew install aria2
sudo snap install aria2c
How to use it?
After installation, you may use the command
paper in your shell to download papers. (You may also use the
arxiv-dl command, they are all equivalent.)
$ paper [-h] [-v] [-p] [-d DOWNLOAD_DIR] [-n N_THREADS] urls [urls ...]
--verbose(optional): Print paper metadata.
--pdf_only(optional): Download PDF only without creating Markdown notes
--download_dir(optional): Specify one-time download directory. This option will override the default download directory or the one specified in the environment variable
--n_threads(optional): Specify the number of parallel connections to be used by
# Use a paper's ArXiv ID $ paper 1512.03385 # You can download multiple papers at once $ paper 1512.03385 2103.15538 2304.04415 # Use ArXiv URL (either abstract page or PDF page URL works!) $ paper https://arxiv.org/abs/2103.15538 # Use ArXiv URL (either abstract page or PDF page URL works!) $ paper https://arxiv.org/pdf/1512.03385.pdf # Use CVF Open Access URL (either abstract page or PDF page URL works!) $ paper "https://openaccess.thecvf.com/content/CVPR2021/html/Lin_Real-Time_High-Resolution_Background_Matting_CVPR_2021_paper.html"
Default Download Destination
- Without any configurations, all paper will be downloaded to
Set Your Custom Download Destination (Optional)
You may configure your preferred download destination once and for all via an environment variable. This will override the default download destination. To do that, include the following line in your
- Every time you use the
papercommand, the download destination will be set to the following order of priority:
- Command-line option
- Environment variable
- Default download destination
- Command-line option
Set Custom Command Alias (Optional)
- You can always set your own preferred alias to rename the command or add more options.
- Include the following line(s) in your
.zshrcfile to set your preferred alias:
alias dp="paper" alias dpv="paper -v -d '~/Documents/Papers'"
Set up development environment
python3 -m venv venv && \ source venv/bin/activate && \ pip install -e ".[dev]"
Build the package
Clean cache & build artifacts
- Add support for ara2c.
- Add support for papers on CVF Open Access.
- Add support for papers on OpenReview.
MIT License - Copyright (c) 2021-2023 Mark Huang
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.