Skip to content

vitali87/website2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WTP Logo

Web-to-PDF Crawler

Crawl websites and save them as a single PDF with clickable table of contents.

Installation

uv sync
playwright install chromium

Usage

wtp <url> [options]

Options

  • -e, --exclude: Link texts to exclude (repeatable)
  • -L, --level: Max crawl depth (default: 0 = root only)

Examples

wtp https://example.com
wtp https://example.com -L 2 -e "Privacy" -e "Terms"

Output

  • Individual PDFs: website_pdfs/
  • Combined PDF: final_combined_output.pdf

License

MIT

About

Web-to-PDF Crawler for any depth!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages