How antonio-pappalardo/amazon_price_tracker_bot works
This is a scheduled Amazon price-tracking bot: it loads configured product links, scrapes product data, compares prices with stored history, and sends qualifying deal alerts to Telegram. The main runtime is implemented in main.py; scraper.py handles Amazon page retrieval and extraction, while database.py provides SQLite history and price queries. The README also describes optional polling and affiliate support, but polling is commented out and affiliate-link wiring is inactive in the sampled source. The graph reflects the default scan workflow; unsampled capabilities are not expanded into unsupported runtime components.
Main entry points: main.py Price evaluator · database.py History queries · scraper.py Product scraper
Components 10
Scan workflow
- Product links
- Scan runner
main.py - Price evaluator
main.py - Alert builder
main.py
Product scraping
- Product scraper
scraper.py
Price history
- History queries
database.py - Price history
database.py
Other components
- Operator
- Telegram
- Amazon
Connections 10
- Operator → Scan runner: starts scan
README.md - Product links → Scan runner: provides links
main.py - Scan runner → History queries: initializes history
main.py - Scan runner → Price evaluator: runs scanner
main.py - Price evaluator → Product scraper: fetches product
main.py - Product scraper → Amazon: requests page
scraper.py - Price evaluator → History queries: queries and saves
main.py - History queries → Price history: reads and writes
database.py - Price evaluator → Alert builder: qualifies deal
main.py - Alert builder → Telegram: sends alert
main.py