Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic Web Scraper

Scrapes 5 websites concurrently - Hacker News, Reddit, Quotes to Scrape, Books to Scrape, Wikipedia Recent Changes.

Follow these easy steps to run it on your machine:

Step 1: Create a Virtual Environment

Step 2: Install the packages

pip install -r requirements.txt
playwright install

Step 3: Seed the database

python src/main.py seed

Step 4: Run the FastAPI Server

python src/main.py serve

Step 5: Run the Scraper pipeline for 30 minutes

python src/main.py run --duration 1800 --output output/pipeline_run.json

Step 6: Trigger mid run failure

curl -X PATCH http://localhost:8000/api/sources/quotes_to_scrape \
  -H "Content-Type: application/json" \
  -d '{"enabled": false}'

API

GET    /sources
POST   /sources
GET    /sources/{id}
PUT    /sources/{id}
DELETE /sources/{id}
POST   /sources/{id}/dry-run
GET    /health

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages