Jeyadev R

Tooling

Advanced CLI Web Scrapper

Full-Site Archiver Built on Playwright

Advanced CLI Web Scrapper: Full-Site Archiver Built on Playwright

About this project

CLI tool to download full web pages with assets (CSS, JS, images, video) for offline archiving. Handles dynamic/JS-heavy pages, adjustable crawl depth, URL filtering, domain locking, and concurrent downloads.

The problem

Simple scrapers that download raw HTML miss content built by JavaScript, so saved pages come out blank or broken.

Approach

A Python command-line tool that renders each page in headless Chromium through Playwright, then parses it with BeautifulSoup to find every linked asset: CSS, JavaScript, images, audio and video. You set the crawl depth, include or exclude URLs by keyword, and lock the crawl to the starting domain. Assets download in parallel through a thread pool.

Results

Complete offline copies of JavaScript-heavy pages and site sections. Each run writes a final_report.json with session statistics and any failed URLs.

Category
Tooling
Built by
Jeyadev R

Tech stack

  • Python
  • Playwright
  • BeautifulSoup

More Tooling projects