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
- Custom Mapper - Discovers all URLs on the site
- Firecrawl Batch - Scrapes each URL for markdown content
- Returns - List of pages with markdown content