Shaf Lab

Web extraction

Turning web pages into clean, structured data for models, with tools such as Firecrawl.

Web extraction turns a page into clean, structured data a model can use: the main text, the title, the useful links, maybe a table, without the chrome, ads, and scripts. Firecrawl is one tool in this category; the job itself is older than any vendor. You want the content a person would actually read, in a form you can store, chunk, and retrieve.

Use extraction when you are building a knowledge base from public or allowed pages, or when an agent needs the substance of a URL and not a screenshot of the layout. Respect the site's terms and rate limits, and prefer a documented API when one exists. For pages that need a login or a lot of client-side rendering, you may have to drive a real browser, then extract from the result.

Keep the URL, the time you fetched it, and the raw text you stored. When the page changes, you will want to know what the agent saw. Strip boilerplate so the index is not full of navigation labels, and be careful with pages that have little unique content.

Extraction is the start of a pipeline, not the whole product. Once you have clean text, the usual next steps are chunking, embeddings, and a retrieval path you can evaluate.