Skip to main content

DocuLift

DocuLift is a web scraping tool that lifts documentation websites into clean, aggregated files optimized for feeding into Large Language Models like Google NotebookLM, Claude, or ChatGPT.

It handles dynamic Single Page Applications (SPAs), respects site structure, and produces output in two modes: full content extraction or URL-only extraction.


Features

  • Two Extract Modes — choose between extracting full page content or just collecting URLs (see When to Use Each Mode)
  • Dynamic Content Scraping — uses Playwright (headless Chromium) to render JavaScript-heavy sites (React, Vue, etc.) before extraction
  • Smart Scoping:
    • Section Only — stays within the folder boundary of the starting URL (e.g. starting at .../docs/agents/overview scrapes everything under .../docs/agents/)
    • Entire Domain — crawls all pages under the target domain
  • Intelligent Aggregation — combines multiple pages into single files, auto-splits at ~500KB (NotebookLM's per-file limit), generates meaningful filenames
  • Multi-URL Support — submit multiple starting URLs in one job; each is crawled independently and produces its own output file(s)
  • Per-URL stats — on completion, the UI shows how many pages or URLs were collected per starting URL
  • Clean Extraction — removes navigation, footers, sidebars, ads, and scripts; focuses on main content

When to Use Each Mode

Extract Content

Crawls each page and converts its content to Markdown (or text/CSV). Use this when you want to feed documentation directly into an LLM as context.

  • Best for: NotebookLM, Claude Projects, ChatGPT — any tool that accepts uploaded documents
  • Output: One or more .md files per starting URL, split at ~500KB
  • Typical workflow: Extract content → upload files to NotebookLM → ask questions

Extract URLs Only

Crawls the site and collects every discovered URL within scope, writing them to a plain .txt file — one URL per line, no other content.

Use this when NotebookLM's URL limit is the bottleneck.

NotebookLM supports adding web URLs as sources, but has a cap on how many you can add per notebook. When a documentation section has hundreds of pages, you'll hit that limit quickly. The recommended two-step workflow is:

  1. Run "Extract URLs Only" on the target documentation to get a full list of all pages within scope
  2. Review and trim the URL list down to the most relevant pages
  3. Add the trimmed URLs directly to NotebookLM as web sources — NotebookLM fetches and indexes them itself, giving you live, citable sources rather than static file uploads

This approach gives you fine-grained control over exactly which pages NotebookLM indexes, without wasting your URL quota on irrelevant pages.


Tech Stack

Layer Technology
Backend Python 3.10+, Flask
Scraping Playwright (headless Chromium)
Parsing BeautifulSoup4
Frontend HTML5, CSS (Glassmorphism), Vanilla JS
CI/CD GitHub Actions, Black, Flake8, Bandit

Continuous Integration (CI/CD)

DocuLift includes a pre-configured GitHub Actions pipeline (.github/workflows/ci.yml) that automatically runs on every push and pull request to the main or master branches.

The pipeline executes the following checks to ensure code quality and security:

  1. Code Formatting (Black)
    • Automatically checks that all Python files adhere to standard black formatting rules.
  2. Linting (Flake8)
    • Scans for syntax errors, undefined names, and unused imports.
    • Enforces a maximum line length and complexity thresholds.
  3. Security Scanning (Bandit)
    • Analyzes Python code for common security vulnerabilities.
    • Ensures safe configurations (e.g., verifying debug=False for Flask in production environments).

Note: The pipeline strictly fails if any high-severity security issues are found, preventing insecure code from being merged.


Installation

DocuLift is published on PyPI as doculift. We recommend installing it in a virtual environment or using pipx.

Prerequisites

  • Python 3.10 or higher

Steps

  1. Install the package via pip

    pip install doculift
    
  2. Install Chromium (required for dynamic page scraping)

    playwright install chromium
    
  3. Start the Web UI

    doculift ui
    

    Open http://127.0.0.1:5001 in your browser.


Usage

DocuLift is a hybrid tool. You can run it via a beautiful Web interface, or directly from your terminal.

1. Web User Interface

Start the local server:

doculift ui
# or
doculift ui --port 5001

Then open http://127.0.0.1:5001 in your browser.

  1. Enter target URLs — one per line (e.g. https://docs.docker.com/reference/)
  2. Choose Extract Mode — Extract Content or Extract URLs Only
  3. Choose Scoping Strategy — Section Only (recommended) or Entire Domain
  4. Choose Output Format — Markdown, Plain Text, or CSV (applies to content mode)
  5. Set Max Pages per URL — default 500; each starting URL is crawled independently up to this limit
  6. Click "Siphon Content" and watch the progress bar
  7. On completion, per-URL stats are shown and files are available for download

2. Command Line Interface (CLI)

Run extraction directly from your terminal with a beautiful progress bar. Files will be saved into the ./outputs folder automatically.

# See all available commands and options
doculift --help

# See options specific to the scrape command
doculift scrape --help

# Example: Extract full markdown content from a documentation section
doculift scrape https://docs.docker.com/reference/

# Example: Extract only URLs, capped at 1000 pages, from multiple sources
doculift scrape https://paketo.io/docs/ https://docs.docker.com/ --mode urls --max-pages 1000

How It Works

User submits URLs + config
        ↓
Background thread spawned (one per job)
        ↓
For each starting URL:
  ├── Determine scope (section boundary or full domain)
  ├── BFS crawl with Playwright (handles JS rendering)
  ├── [Content mode] Clean HTML → Markdown, buffer → split files at 500KB
  └── [URL mode] Collect discovered links → single .txt file
        ↓
Per-URL stats displayed, files available for download

Key crawl behaviours:

  • Each starting URL gets an independent BFS with its own visited set — URLs are not cross-contaminated between starting points
  • max_pages applies per starting URL, not globally
  • Pages already scraped by an earlier starting URL in the same job are skipped to avoid duplication
  • Fragment URLs (#anchor) are normalised and deduplicated

API

Trigger jobs programmatically:

curl -X POST http://127.0.0.1:5001/scrape \
  -H "Content-Type: application/json" \
  -d '{
    "urls": ["https://docs.docker.com/reference/", "https://paketo.io/docs/"],
    "format": "md",
    "max_pages": 200,
    "scope_type": "section",
    "extract_mode": "content"
  }'

Response:

{ "job_id": "abc123" }

Poll for status:

curl http://127.0.0.1:5001/status/abc123

Response fields: status, progress, is_finished, files, per_url_stats, urls_extracted.

Download a file:

GET /download/<job_id>/<filename>

Metadata

Release files for doculift 0.1.1

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

Source distribution (sdist)

Source distribution for doculift 0.1.1
File Size Uploaded Provenance Actions
doculift-0.1.1.tar.gz 393.0 kB Without provenance Details for doculift-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 781.9 kB

Release files / doculift-0.1.1.tar.gz

Download URL doculift-0.1.1.tar.gz
Size 393.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e0155c2110a9a139138f1af2879e13c7e17b581ea2fe0c31fad7272df8bf5e46
BLAKE2b-256 checksum
How to use checksums
1209ea6bb37350ad777041206ead8d679804bd06288c4d4f7094bec32cf6b4f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release files / doculift-0.1.1-py3-none-any.whl

Download URL doculift-0.1.1-py3-none-any.whl
Size 388.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8511d93a5a88f703393aaf1c254184c2c79f8f51c6be9db9f61fb4fff766d44c
BLAKE2b-256 checksum
How to use checksums
a99ee04fa9fdac8996038c28f0ad0753674f4c7c64b12eae076cd7008648de7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Security for doculift 0.1.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.

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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