How techwithtim/price-tracking-web-scraper works
The product is an Amazon.ca price-tracking application: users submit a search, the scraper collects matching products, and the interface presents tracked products and price history. A scheduler can request tracked-product updates. The Flask API is the integration point between the UI, scraper and scheduled trigger. The README documents Flask, Playwright and Bright Data; backend route and persistence details are not visible in the excerpts, so those connections are limited to documented or directly observed HTTP behavior.
Main entry points: App.js Search app · app.py Flask API · main.py Search and collect · PriceHistoryTable.jsx Price history
Components 14
Web interface
- Search app
frontend/src/App.js - Search list
frontend/src/components/SearchTextList.jsx - Tracked products
frontend/src/components/TrackedProductList.jsx - Price history
frontend/src/components/PriceHistoryTable.jsx - Product details
frontend/src/components/ProductDetailsPage.jsx - Details modal
frontend/src/components/Modal.jsx
Backend API
- Flask API
Backend/app.py
Price collection
- Scraper entry
Backend/scraper/__init__.py - Search and collect
Backend/scraper/main.py - Amazon extraction
Backend/scraper/amazon.py - Scraping browser
Scheduled updates
- Update scheduler
scheduler/main.py
Other components
- User
- Amazon.ca
Connections 17
- User → Search app: submits search
frontend/src/App.js - Search app → Flask API: starts scraper
frontend/src/App.js - Flask API → Scraper entry: launches scraper
- Scraper entry → Search and collect: runs
Backend/scraper/__init__.py - Search and collect → Scraping browser: connects through CDP
Backend/scraper/main.py - Search and collect → Amazon.ca: opens and searches
Backend/scraper/main.py - Search and collect → Amazon extraction: extracts products
Backend/scraper/main.py - Search and collect → Flask API: posts results
Backend/scraper/main.py - Search app → Search list: renders
frontend/src/App.js - Search app → Tracked products: renders
frontend/src/App.js - Search app → Price history: renders
frontend/src/App.js - Search list → Search app: selects search
frontend/src/components/SearchTextList.jsx - Tracked products → Flask API: manages tracked items
frontend/src/components/TrackedProductList.jsx - Price history → Details modal: opens details
frontend/src/components/PriceHistoryTable.jsx - Price history → Product details: renders details
frontend/src/components/PriceHistoryTable.jsx - Search app → Flask API: loads history
frontend/src/App.js - Update scheduler → Flask API: requests updates
README.md