Developer tools & scriptsOwnerNov 2025

Website link crawler (Crawlee and Playwright)

TL;DR

Give it one URL and it opens a real Chromium browser, follows same-site links and writes an inventory of every page to results.json.

Period
Nov 2025
Technologies
2
Diagrams
1
Reading time
1 min

PythonPlaywright

1 chapter(s) collapsed in quick read

What it does

Give one start URL; the crawler opens a real Chromium browser, and for each page: logs the URL, enqueue_links follows every internal <a href> (staying on-domain), and push_data stores {url, title, first 100 chars of HTML}. At the end export_data('results.json') writes the whole dataset.

What it does
Diagram as text
flowchart LR
 START[start URL] --> C[PlaywrightCrawler request_handler]
 C --> E[enqueue_links: internal hrefs → queue]
 C --> D[push_data: url, title, snippet]
 E --> C
 D --> J[(results.json)]

Related projects

Want to discuss this project?

Happy to walk through the architecture, trade-offs or the code.

Email me about it

© 2026 Thuyavan Sivarasa. Script code is MIT licensed.