Recipe
How do I turn a list of web pages into clean text for a RAG pipeline?
A browser-based crawler renders JavaScript you do not need, costs a few cents per page and returns HTML you still have to clean. For text you can do it without a browser.
Get every URL of the site from its XML sitemaps, so you know what there is to read before you fetch anything.
$0.50 per 1,000 · URL listedTurn each page into clean markdown: the main content, without menus, cookie bars and footers.
$1.00 per 1,000 · Page convertedDo the same for the PDFs you find, one row per page so the chunks stay small enough to embed.
$1.00 per 1,000 · Page extractedA thousand pages costs about $1.00 in total, and pages that fail are free.