# Valstorm Web Intelligence & Scraping Service (`apps/web-scraper`) High-performance, multi-tenant web scraping, crawler, RSS feed monitoring, and visual diff microservice powered by native Python 3.14 Zstandard (zstd) compression, Valkey single-flight locks, and direct Virtual File Service (VFS) Knowledge Vault ingestion via `valstorm-client`. - **Official Tool Page & Architecture Guide:** [https://www.valstorm.com/free-tools/valstorm-web-scraper](https://www.valstorm.com/free-tools/valstorm-web-scraper?utm_source=github&utm_medium=readme&utm_campaign=valstorm_web_scraper) - **All Valstorm Free & Open-Source Tools:** [https://www.valstorm.com/free-tools](https://www.valstorm.com/free-tools?utm_source=github&utm_medium=readme&utm_campaign=valstorm_web_scraper) - **Valstorm BOS & Knowledge Vaults:** [https://www.valstorm.com/bos](https://www.valstorm.com/bos?utm_source=github&utm_medium=readme&utm_campaign=valstorm_web_scraper) --- ## Key Features 1. **3-Tier Waterfall Pipeline**: - **Tier 1 (Fast HTTP)**: Async HTTP via `httpx` with HTTP/2 and Brotli/Gzip decoding. - **Tier 2 (Stealth Playwright)**: Headless Chromium with stealth evasion scripts, canvas spoofing, and JavaScript rendering. - **Tier 3 (Firecrawl Cloud Fallback)**: Automated cloud fallback for complex Cloudflare Turnstile or Akamai challenges. 2. **Native Python 3.14 Zstandard Compression (PEP 784)**: - High-ratio `zstd` binary storage in the database with Valkey L1 cache. - 70-85% payload token reduction compared to raw HTML. 3. **SSRF Guard**: - Strict IP resolution checks blocking access to private, loopback, link-local, and cloud metadata addresses (`169.254.169.254`, `10.0.0.0/8`, `192.168.0.0/16`, `127.0.0.0/8`). 4. **Virtual File Service (VFS) Ingestion Sink**: - Seamlessly ingests scraped markdown snapshots into Valstorm Knowledge Vaults via `valstorm-client` (`client.files.*` and `client.vfs.*`). - Authenticated with machine-to-machine `ServiceKeyAuth`. 5. **Domain Crawler & RSS Feeds**: - Concurrent link discovery and domain crawling with bounded parallelism. - Real-time RSS 2.0 / Atom feed polling and web content visual diffing. --- ## API Routes - `POST /v1/scrape` — Scrapes a single URL with 3-tier waterfall and optional `ingest_to_vfs=true`. - `POST /v1/scrape/batch` — Scrapes an array of URLs with bounded concurrency. - `POST /v1/crawl` — Crawls internal pages across a domain with optional VFS vault ingestion. - `POST /v1/search` — Performs live web search queries and returns cleaned snippets. - `POST /v1/feed/poll` — Polls RSS/Atom news feeds for recent articles. - `POST /v1/diff` — Compares live web content against archived snapshots to detect changes. - `GET /v1/stats` — Metrics on compression ratios, cache hit rates, and tier utilization. --- ## Running Locally ```bash # Install dependencies with uv cd apps/web-scraper uv sync # Run test suite uv run pytest tests/ # Start FastAPI server uv run uvicorn app.main:app --host 0.0.0.0 --port 8661 ``` --- ## License & Commercial Terms Valstorm Web Intelligence & Scraping Service is distributed under a **Dual License** model: - **Noncommercial Use (Community & Academic)**: Licensed under the **[PolyForm Noncommercial License 1.0.0](LICENSE.md)**. You are free to run, inspect, and evaluate the scraper for personal, hobby, or educational purposes without fees. - **Commercial & Enterprise Use**: Any commercial use—including running internal business operations, powering SaaS backends, managed hosting, or client consulting deliverables—requires a commercial agreement. For commercial licensing, enterprise BYOC terms, or official partner programs: - **Email:** team@valstorm.com - **Website:** [Valstorm Pricing](https://valstorm.com/pricing) - **Enterprise Portal:** [Valstorm Enterprise](https://valstorm.com/enterprise) See [CONTRIBUTING.md](CONTRIBUTING.md) for community guidelines and development policies. ``` Copyright (c) 2026 Valstorm LLC. All rights reserved. ``` ---
Built by Valstorm — The everything engine for business operations.
--- # Valstorm Dedicated Video Worker (`apps/video-worker`) Dedicated, asynchronous microservice handling video transcoding, FFmpeg transformations, speech-to-text generation, AI metadata extraction, and platform synchronization powered by the `valstorm-client` SDK. - **Official Tool Page & Architecture Guide:** [https://www.valstorm.com/free-tools/valstorm-video-worker](https://www.valstorm.com/free-tools/valstorm-video-worker?utm_source=github&utm_medium=readme&utm_campaign=valstorm_video_worker) - **All Valstorm Free & Open-Source Tools:** [https://www.valstorm.com/free-tools](https://www.valstorm.com/free-tools?utm_source=github&utm_medium=readme&utm_campaign=valstorm_video_worker) - **Full-Stack GTM & RevOps Playbook (90-Sec VSL Factory):** [https://www.valstorm.com/playbooks/full-stack-gtm-revops-machine](https://www.valstorm.com/playbooks/full-stack-gtm-revops-machine?utm_source=github&utm_medium=readme&utm_campaign=valstorm_video_worker) ## Features - **Queue Consumer:** Consumes video processing tasks from `valstorm:queue:video`. - **Transcoding Engine:** Multi-preset FFmpeg pipeline (`fast_copy`, `balanced`, `compressed`) with smart container fallback. - **Audio & Captions:** Extracts audio tracks and triggers speech-to-text with Deepgram Nova-3 / Whisper. - **AI Multimodal Metadata:** Generates SEO-ready titles, descriptions, YouTube chapters, and summaries. - **Platform Synchronization:** Interacts with Valstorm Core APIs via `valstorm-client` (`client.records.*` and `client.query.*`) authenticated via `ServiceKeyAuth`. - **Healthchecks:** Integrated HTTP server on port `8080` (`/health`) and Redis worker heartbeat. ## Local Development ```bash cd apps/video-worker uv sync python -m main ``` --- ## License & Commercial Terms Valstorm Dedicated Video Worker is distributed under a **Dual License** model: - **Noncommercial Use (Community & Academic)**: Licensed under the **[PolyForm Noncommercial License 1.0.0](LICENSE.md)**. You are free to run, inspect, and evaluate the worker for personal, hobby, or educational purposes without fees. - **Commercial & Enterprise Use**: Any commercial use—including running internal business operations, powering SaaS backends, managed hosting, or client consulting deliverables—requires a commercial agreement. For commercial licensing, enterprise BYOC terms, or official partner programs: - **Email:** team@valstorm.com - **Website:** [Valstorm Pricing](https://valstorm.com/pricing) - **Enterprise Portal:** [Valstorm Enterprise](https://valstorm.com/enterprise) See [CONTRIBUTING.md](CONTRIBUTING.md) for community guidelines and development policies. ``` Copyright (c) 2026 Valstorm LLC. All rights reserved. ``` ---Built by Valstorm — The everything engine for business operations.