AI RESEARCH SCRAPER
Hybrid static-HTTP and Playwright web extraction pipeline normalizing messy B2B company sites into structured JSON.
Ownership & Role Scope
Primary ownership per owner-authored system specifications (external/confidential repo not present in this local workspace)
Stack & Modules
Hybrid static HTTP and Playwright rendering architecture per internal system specifications (external repo absent from local workspace).
Lightweight Signal Probe
HTTPX / Status Check
Probes reachability, response headers & framework hydration markers
Static vs. Dynamic Router
Routes static HTML via Scrapy; escalates SPAs to Playwright only when needed
HTML Signal Distillation
BeautifulSoup Reduction
Strips nav/footer chrome; extracts product, pricing & leadership routes
Payload Normalization
Compresses unstructured DOM slices into token-bounded inputs
Schema JSON & Pools
Structured LLM Extraction
Validates typed company profiles with retry on schema mismatch
Bounded Worker Concurrency
Isolates DNS/TLS timeouts & anti-bot walls per domain without batch stall
Repo company-info-scraper is outside this workspace; flow strictly reflects available owner-authored specifications.
Hybrid static-HTTP and Playwright web extraction pipeline normalizing messy B2B company sites into structured JSON.
Handling Heterogeneous B2B Websites Efficiently
Prospected company domains span lightweight static HTML sites and script-heavy client-rendered SPAs. Booting a headless browser unconditionally wastes memory and latency, while HTTP-only requests miss hydrated product copy.
Static vs. Dynamic Routing & HTML Distillation
Domains are probed first using lightweight HTTP requests (`HTTPX` / `Scrapy`) to evaluate content density, framework markers, and status health—escalating to headless `Playwright` rendering only when client execution is required.
Captured markup is cleaned via BeautifulSoup/HTML distillation across high-signal routes (company overview, products, pricing) before passing concise payloads into strict JSON schema LLM normalization.
Bounded Concurrency & Failure Classification
Batch jobs coordinate worker pools with explicit timeouts and structured error taxonomies (DNS/TLS issues, anti-bot challenges, empty payloads) so an unreachable company domain isolates cleanly without stalling batch throughput.
Specification-Sourced Scope (01C)
- Designed and owned the standalone Python AI research scraper (`company-info-scraper`) documented in internal system specs: domain signal checks, lightweight `HTTPX`/`Scrapy` extraction with `Playwright` escalation for JS-heavy SPAs, HTML distillation, and structured LLM schema normalization.
- Boundary Note: Because `company-info-scraper` resides outside this local workspace, module-level details below follow owner-authored architectural specs rather than local line-by-line inspection (separately from `company-intel-service`'s team-owned Node research services).
Handling Heterogeneous B2B Websites Efficiently
Prospected company domains span lightweight static HTML sites and script-heavy client-rendered SPAs. Booting a headless browser unconditionally wastes memory and latency, while HTTP-only requests miss hydrated product copy.
Static vs. Dynamic Routing & HTML Distillation
Domains are probed first using lightweight HTTP requests (`HTTPX` / `Scrapy`) to evaluate content density, framework markers, and status health—escalating to headless `Playwright` rendering only when client execution is required.
Captured markup is cleaned via BeautifulSoup/HTML distillation across high-signal routes (company overview, products, pricing) before passing concise payloads into strict JSON schema LLM normalization.
Bounded Concurrency & Failure Classification
Batch jobs coordinate worker pools with explicit timeouts and structured error taxonomies (DNS/TLS issues, anti-bot challenges, empty payloads) so an unreachable company domain isolates cleanly without stalling batch throughput.