Scrapes 5 websites concurrently - Hacker News, Reddit, Quotes to Scrape, Books to Scrape, Wikipedia Recent Changes.
Step 1: Create a Virtual Environment
Step 2: Install the packages
pip install -r requirements.txt
playwright installStep 3: Seed the database
python src/main.py seedStep 4: Run the FastAPI Server
python src/main.py serveStep 5: Run the Scraper pipeline for 30 minutes
python src/main.py run --duration 1800 --output output/pipeline_run.jsonStep 6: Trigger mid run failure
curl -X PATCH http://localhost:8000/api/sources/quotes_to_scrape \
-H "Content-Type: application/json" \
-d '{"enabled": false}'GET /sources
POST /sources
GET /sources/{id}
PUT /sources/{id}
DELETE /sources/{id}
POST /sources/{id}/dry-run
GET /health