Skip to main content

Daily News Scraper

Daily News Scraper
PythonAIWeb ScrapingPostgreSQLCrawl4AIPlaywrightGPT-4Automation

A self-healing, database-backed news scraper that uses AI to automatically generate and repair web parsers. Built on Crawl4AI and Playwright for reliable SSR + SPA scraping.

The Daily News Scraper is an intelligent news aggregation system that automatically adapts to website changes. When given a URL, it looks up a declarative parser by URL regex, creates one with AI if missing, runs it against a Crawl4AI-rendered page (SSR + SPA), validates the output with news-aware checks, and repairs the parser when checks fail. Key features: • Self-healing parsers that automatically repair when websites change • Database-backed parser storage with PostgreSQL and Alembic migrations • Batch scraping with resilient error handling • AI-powered parser generation using GPT-4 • Support for both SSR and SPA pages via Crawl4AI + Playwright • Declarative JSON parsers (selectors, wait rules, field maps) instead of executable code The system is designed for daily news aggregation workflows, with a CLI interface that integrates seamlessly with agent-based automation for ranking, filtering, and delivering curated news digests.