Skip to main content

Internal Service: scrape_website

Scrapes all pages from the source website using custom mapper + Firecrawl batch scrape.
Important: In the new architecture, scraped pages are ONLY used for markdown replica generation. LLM content (llms.txt, Q&A, data.json) is generated from business_info via Firecrawl agent.

Function Signature

Parameters

Returns

How Pages Are Used

Parallel Execution

In the regenerate-fresh-website endpoint, scraping runs in parallel with business info discovery:

Code Location

Pipeline

  1. Custom Mapper - Discovers all URLs on the site
  2. Firecrawl Batch - Scrapes each URL for markdown content
  3. Returns - List of pages with markdown content