# fuergaosi233/gitbook2pdf

Grab the contents of the gitbook document and convert it to pdf

Repository: https://github.com/fuergaosi233/gitbook2pdf
Canonical: https://ross.abutalabs.com/products/gitbook2pdf
Language: Python
License Family: other
Archived: true
Last push: 2022-08-06T15:03:33+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2740, "days_push": 1488, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1067, forks 175 (observed 2026-08-28T04:03:27.202087+00:00)

## What it is
A Python CLI tool that asynchronously crawls GitBook documentation sites and converts their contents into a single PDF. It preserves the original directory structure, hyperlinks, and copyable text using aiohttp for fetching and WeasyPrint for PDF generation.

## Use cases
- convert a gitbook documentation site to a single pdf
- download an online gitbook for offline reading
- export gitbook docs as pdf with working hyperlinks
- archive gitbook pages preserving directory structure
- generate a compact pdf of hundreds of gitbook pages
- scrape gitbook content quickly with async requests

## When to choose
- you need an offline PDF copy of a public GitBook site
- you want to preserve links, text selection, and chapter structure in the export
- you prefer a fast asynchronous scraper over browser-based rendering

## When to avoid
- the GitBook relies on heavy JavaScript rendering that WeasyPrint cannot reproduce
- you cannot install WeasyPrint's system dependencies or lack memory for large PDF generation
- you need a maintained tool with active support or a license

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: web-scraping, pdf, cli
- domain: pdf, documentation, developer-tools
- platform: python, cli, cross-platform
- tags: gitbook, pdf-generation, async-scraping, weasyprint, documentation-export, command-line

## Member repositories
- fuergaosi233/gitbook2pdf (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:27.202087+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:55:10.036538+00:00, confidence not recorded.
  - readme: https://github.com/fuergaosi233/gitbook2pdf (fetched 2026-08-28T04:03:27.202087+00:00, sha 71ecfbdc392e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
