Overview
This program automatically checks prices on your favorite product pages and monitors them for changes. When it detects a price change, it sends a notification through a Discord webhook. It also logs the price and time of each check, so you can reconstruct the price history of a listing over time.

How to Use It
After downloading the program, you should see the following files. If product_pages.txt, proxies.txt, or historical_data.json are missing, run the program once to create them automatically, or add them manually.

- proxies.txt: add your proxies in the format
ip:port:username:password(one per line). Proxies are optional, but recommended when scraping a large number of pages. - product_pages.txt: add links to the products you want to scrape. Only a handful of sites are currently supported, but you can easily add more in
product_scrapers.py. - Discord notifications: add a webhook in
main.pyby assigning theWEBHOOKvariable.

To start the program, run main.py. It will retrieve the price for every URL listed in product_pages.txt. To check that everything worked, open historical_data.json, which should look something like this:

To get the most out of it, run the program automatically each day using Task Scheduler on Windows or cron on Linux and macOS. On days when prices deviate from previously recorded values, you'll automatically get a notification.
How It Works
The application is divided into four main components:
main.pycoordinates the overall workflow. It loads configuration files and historical data, retrieves product pages, processes the scraped product information, updates the price history, and checks for price changes. If a change is detected, it generates and sends a Discord notification.retrieve_pages.pydownloads product pages. It uses asynchronous HTTP requests viaasyncioandaiohttpto retrieve many pages concurrently, and handles proxy rotation, request retries, and per-domain concurrency limits.product_scrapers.pyextracts product information from the downloaded pages. Since each retailer uses a different HTML structure, there's a separate scraper function for each supported site that locates the product name and current price.helper_funcs.pycontains shared helpers for formatting prices, extracting domain names from URLs, loading files safely, determining the working directory, and sending Discord webhook notifications. Centralizing these improves maintainability.
Features
- Asynchronous web scraping with Python
asyncio+aiohttp - Proxy support to reduce the likelihood of being flagged and rate limited
- Works with 9 different web stores (currently certain sporting goods and drone stores)
- Highly modular codebase that makes adding new sites easy
Future Improvements
- Add more supported sites
- Move settings into a configuration file
- Support sites that block plain HTTP requests by using Playwright to open listings in a browser