# Website link crawler (Crawlee and Playwright)

> 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.

URL: https://thuyavan.netlify.app/projects/website-link-crawler
Updated: 2026-10-12

- Period: 2025-11
- Technologies: Python, Playwright

## 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.

## Notes

The committed run targets a PayHere support site (support.payhere.lk) — PayHere is the Sri Lankan payment gateway used in the owner’s commerce work (GoldStar P12, Munz P18), so this was likely mapping its docs. The default crawlee.dev example URL is commented out. A small, idiomatic Crawlee example; published as a portfolio how-to.
