Skip to main content

PaperChaser

A Python tool for extracting and downloading academic paper references. Supports both single and two-column PDF formats.

Features

  • Extract references from PDF files with support for:
    • Single and two-column layouts
    • Multiple reference formats (numbered, bracketed, author-year)
    • Smart reference section detection
  • Download papers using:
    • DOI lookup
    • Title-based search
    • Multiple sources, tried in order: open access (PMC Open Access Subset, Unpaywall, arXiv), then the publisher via your own subscription access, then Sci-Hub
    • Per-source failure reasons for every paper that could not be fetched
  • Automatic PDF renaming with metadata
  • Beautiful command-line interface with:
    • Progress bars
    • Colored status indicators
    • Formatted tables
    • Detailed error reporting

Installation

pip install paperchaser

Usage

Basic usage:

# Extract and download references from a PDF
paperchaser path/to/paper.pdf

# Extract references without downloading (debug mode)
paperchaser path/to/paper.pdf --debug

# Specify output directory
paperchaser path/to/paper.pdf -o downloaded_papers

# Force re-download of existing papers
paperchaser path/to/paper.pdf -f

# Download one or more DOIs directly (bare DOI, doi: prefix or doi.org URL)
paperchaser 10.1056/NEJMoa2001017 https://doi.org/10.1038/s41586-020-2012-7

# Download from a text file with one DOI per line (blank lines and # comments ignored)
paperchaser dois.txt
paperchaser --doi-file dois.txt

# Read DOIs from stdin
cat dois.txt | paperchaser -

# Mix inputs freely; duplicates are removed
paperchaser paper.pdf dois.txt -d 10.1126/science.abb3221

Institutional (subscription) access

Requests go out from the machine you run this on, so if your institution grants access by IP, running on campus or on the VPN is enough: the DOI is resolved to the publisher's landing page, the full-text PDF link is read off it, and the PDF is fetched over that same session.

If your library needs a login rather than just an IP, point --proxy-prefix at your proxy. Both EZproxy styles work:

# URL-prefix style (a {url} placeholder percent-encodes the target)
paperchaser paper.pdf --proxy-prefix 'https://ucsf.idm.oclc.org/login?url='

# Hostname-rewriting style
paperchaser paper.pdf --proxy-prefix '.ucsf.idm.oclc.org'

For proxies or publishers that need an authenticated session (OpenAthens, Shibboleth, Cloudflare-protected sites), export cookies.txt from a browser you are already logged into and pass it; cookies persist across the whole run:

paperchaser paper.pdf --proxy-prefix '.ucsf.idm.oclc.org' --cookies cookies.txt

Use --no-scihub to stop at legitimate sources. Publishers that render the PDF link only via JavaScript, or that sit behind a bot check (ScienceDirect's linkinghub.elsevier.com is the usual one), will still fail; the run reports which step failed for each paper.

Open access sources

--email is required for the Unpaywall lookup, which rejects calls that do not carry a real address. Without it that source is skipped and the run says so.

PMC full text comes from the PMC Cloud Service open-data bucket, which covers the PMC Open Access Subset. PMC's own /articles/<id>/pdf URL is not used: it now answers scripted requests with a CAPTCHA, and the OA Web Service (oa.fcgi) it replaced has been retired.

Advanced options:

Usage: paperchaser [OPTIONS] [INPUTS]...

Options:
  -d, --doi TEXT             DOI to download (repeatable)
  -i, --doi-file FILE        Text file with one DOI per line (repeatable)
  -o, --output-dir TEXT      Directory to save downloaded papers
  --email TEXT              Your address, required for the Unpaywall lookup
  --proxy-prefix TEXT       Institutional proxy: URL prefix or EZproxy host suffix
  --cookies FILE            Netscape cookies.txt from a logged-in browser
  --scihub/--no-scihub      Fall back to Sci-Hub (default: True)
  -f, --force              Force download even if paper already exists
  --rename/--no-rename     Rename downloaded PDFs using metadata (default: True)
  --failed-file FILE       Where to list DOIs not downloaded
                           (default: OUTPUT_DIR/not_downloaded_dois.txt)
  --debug                  Show debug information without downloading
  --help                   Show this message and exit

Output Format

The tool provides detailed information about the extraction and download process:

  • Reference extraction progress
  • Found references with numbering
  • Download status for each paper
  • Color-coded success/failure indicators
  • Detailed error messages for failed downloads
  • A text file (not_downloaded_dois.txt in the output directory, or --failed-file) with one DOI per line for every paper that was not downloaded. References with no DOI are listed as # comments, so the file can be fed straight back in to retry, e.g. with a proxy:
paperchaser downloaded_papers/not_downloaded_dois.txt --proxy-prefix '.ucsf.idm.oclc.org'

Metadata

Release files for paperchaser 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for paperchaser 0.3.0
File Size Uploaded Provenance Actions
paperchaser-0.3.0.tar.gz 17.3 kB Without provenance Details for paperchaser-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for paperchaser 0.3.0
File Interpreter ABI Platform Actions
paperchaser-0.3.0-py3-none-any.whl Python 3 none any Details for paperchaser-0.3.0-py3-none-any.whl

Total release size: 33.7 kB

Release files / paperchaser-0.3.0.tar.gz

Download URL paperchaser-0.3.0.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d93e471451a37dc92b88e61fd9e8b2f566685a6ae5e6cc2016fbe97d0f63909d
BLAKE2b-256 checksum
How to use checksums
ba7e7c13b817a93a8508d816302b39f5a378c2c18f80bab0d3ceb51a05cec5d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / paperchaser-0.3.0-py3-none-any.whl

Download URL paperchaser-0.3.0-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
401b2c4cb4c1654945728ad42daef1b4e44a7898afb0711a9d774afbe511d6ce
BLAKE2b-256 checksum
How to use checksums
278c6e13e16149bfb344ff6ed38560a7710c916237c503ba7c28218a81505d51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Security for paperchaser 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page