"""Example: scrape one channel and build DuckDB views. uv run python scripts/scrape.py """ from yt_comment_scraper import ScraperConfig, YouTubeScraper, build_duckdb # Option A: configure in code config = ScraperConfig.from_dict({ "channels": [ {"handle": "@ChannelName", "start_date": "2024-01-01", "end_date": "2025-01-01"}, ], }) # Option B: load from YAML # config = ScraperConfig.from_yaml("channels.yaml") scraper = YouTubeScraper(config, output_dir="data") scraper.run() build_duckdb("data")