PaperLite
English | 简体中文
PaperLite is a high-concurrency, distributed crawling cluster built for collecting tens of millions of papers and web pages. A fleet of fingerprinted real browsers, driven through rotating short-lived proxies, passes Cloudflare-class bot protection natively. Task scheduling, the identity pool and telemetry all live in a single PostgreSQL — no Redis, no message queue, no extra middleware — so one machine and a hundred machines run the same architecture.
🚀 Highlights
- Fingerprinted browser fleet. Built on CloakBrowser's fingerprinted Chromium + Playwright. Each worker owns one browser and one exit IP, with timezone, locale and WebRTC aligned to that IP; it passes the challenge once, then downloads continuously and follows redirects.
- Streaming PDF capture. PDFs are intercepted at the network layer over CDP and streamed to disk — no rendering, no clicking. HTML pages are saved whole.
- Distributed scheduling. Work is handed out in leased chunks; machines join or leave at any time, and chunks from dead nodes are reclaimed by others. A single batch scales to tens of millions of tasks.
- Zero middleware. Task queue, identity pool and telemetry all run on PostgreSQL (
SKIP LOCKEDclaims + advisory-lock coordination). One database is the whole deployment. - Two engines. Browser mode (default) for mixed-host batches; curl mode turns browser-solved sessions into a cookie identity pool and downloads single-site batches at high speed with
curl_cffiTLS impersonation. - Self-healing. Four-phase proxy probes (TCP / TLS / TTFB / total) with exit-IP verification, automatic IP rotation on mid-lease failure, a circuit breaker that stops burning proxy quota when fresh identities keep getting rejected, and title-duplicate rules that skip dead or duplicate content.
- Resumable.
Ctrl+Chands in-flight work back immediately; restarting picks up where it stopped. Results are written at least once, and duplicates are harmless. - Observable end to end. Per-task error classes and timings in the database, plus a real-time multi-machine dashboard (success rate, proxy quality, WAF mix, browser health).
Installation
pip install paperlite # or: uv tool install paperlite
Requires Python 3.11+ on Linux or macOS, a PostgreSQL server, and a short-lived proxy extraction API (use --no-proxy to try it locally without one).
No PostgreSQL yet? Start one locally:
docker run -d --name paperlite-pg -e POSTGRES_USER=paperlite -e POSTGRES_PASSWORD=pl \
-e POSTGRES_DB=paperlite -p 5432:5432 postgres:16
Quick start
mkdir work && cd work
paperlite init # writes ./config.toml (mode 600)
Fill in the sections that matter:
[pg]
dsn = "postgresql://paperlite:pl@127.0.0.1:5432/paperlite"
batch = "my-batch" # machines with the same dsn + batch share the work
[proxy]
api_url = "https://proxy.example.com/extract?..." # returns a fresh ip:port per call
username = "..."
password = "..."
[paths]
storage = "output" # where PDFs / HTML pages go
[run]
command = "run"
workers = 20
urls = "urls.csv" # one URL per line, or a CSV with a `url` column
Then run the batch:
paperlite run config.toml # imports, downloads, exits when the queue is empty
# run the same command on more machines to go faster
paperlite status # counts by status and error class
See the Getting started guide for a full walkthrough.
Documentation
The guides under
docs/are written in Chinese; the README and Getting started are bilingual.
| I want to… | Read |
|---|---|
| Run my first batch | Getting started |
| Choose between browser and curl mode | Execution modes |
| Deploy PostgreSQL | PostgreSQL |
| Run one batch on many machines | Multi-machine deployment |
| Resume, retry, export, run in the background | Operations |
| Set up the fleet dashboard | Monitoring |
| Get Cloudflare Turnstile tokens | Turnstile |
| Fix a problem | Troubleshooting |
| Look up a config field | Configuration reference |
| Look up a command | CLI reference |
| Query the task database | Task database |
| Understand why it works this way | Architecture & design notes |
| Contribute | CONTRIBUTING · Changelog |
The full index is at docs/.
License
Metadata
Release files for paperlite 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| paperlite-0.4.1.tar.gz | 237.0 kB | With provenance | Details for paperlite-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| paperlite-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for paperlite-0.4.1-py3-none-any.whl |
Total release size: 395.4 kB
Release files / paperlite-0.4.1.tar.gz
| Download URL | paperlite-0.4.1.tar.gz |
|---|---|
| Size | 237.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
568663e91ec4825d658c323344bbc25fc86b4e101efdc2232dec4613e80cc2fd
|
|
BLAKE2b-256 checksum How to use checksums |
4900f0af7a0c8c721379143c65727fd7d89171cac9e26f967683db8a92244187
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logRelease files / paperlite-0.4.1-py3-none-any.whl
| Download URL | paperlite-0.4.1-py3-none-any.whl |
|---|---|
| Size | 158.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a95ed87fede9b0b2e4333faf3ee08fbd4f1e71b347328c922a47dc15b5a25c78
|
|
BLAKE2b-256 checksum How to use checksums |
ae96336401fb1739c4f4bf21df12a63172ca9faab49a6b0114f961b86bfdc798
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logSecurity for paperlite 0.4.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for paperlite-0.4.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logA 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.