A small Python scraper that tracks graphics card prices and stock across the biggest US GPU
stores: Newegg, Best Buy, Amazon, Micro Center and B&H Photo. Each run fetches every product page
through the Decodo Web Data API, pulls out every seller's offer, saves it to
SQLite and posts to Discord when a card gets meaningfully cheaper or comes back in stock. It ships
set up for the ASUS Prime GeForce RTX 5070 Ti OC (PRIME-RTX5070TI-O16G), and you can add any
other card by listing its product pages in products.json.
GPU prices move fast and differently at every store, and most "deal" alerts are noise: a marketplace seller lists a card for an hour, a store shows a fake "was" price, or a restock sells out before you see it. This tracker checks every store a few times a day, keeps the full price history, and only alerts on drops that hold for two checks in a row and beat the lowest price seen anywhere in the last 30 days. Decodo handles JavaScript rendering, bot checks and US geo-targeting, so the code stays short enough to read in one sitting and change for your own cards.
- Five US stores. Newegg, Best Buy, Amazon, Micro Center and B&H Photo, each with a parser matched to how that store actually serves its data (embedded JSON, JSON-LD or HTML). More can be added.
- Every seller. Records first-party and marketplace offers, including every Amazon seller and condition.
- Price history in SQLite. One row per offer per check, so you can query trends later.
- Alerts. A price drop must hold for two checks and beat the 30-day low across all stores. Only new-condition offers count, so open-box and used lows don't hide real drops.
- Restock alerts.. Fires whenever an offer goes from sold out or preorder to in stock.
- Cold start handled. Uses the official MSRP as the baseline until a card has 3 checks, or compares from the first scrape if there's no MSRP.
- Discord webhook delivery. With a
--dry-runmode that prints alerts instead. - Resilient runs. Failed Decodo requests (500, 502, 503, 524, 613) are retried once, and one broken store never stops the others.
- Optional direct mode. Fetch without an API using Requests, or Playwright for pages that need JavaScript.
You need Python 3.10 or newer, a Decodo Web Data API key and, for alerts, a Discord channel webhook.
git clone https://github.com/Decodo/gpu-price-tracker.git
cd gpu-price-tracker
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
cp .env.example .envOpen .env and fill in DECODO_API_KEY and DISCORD_WEBHOOK_URL. Then do a first run that prints
alerts instead of posting them:
.venv/bin/python tracker.py --dry-runEach offer is logged to the terminal and saved to prices.db. On Windows, use .venv\Scripts\python
instead of .venv/bin/python.
.venv/bin/python tracker.py # normal run, posts alerts to Discord
.venv/bin/python tracker.py --dry-run # print alerts instead of posting them
.venv/bin/python tracker.py --save-html pages # keep the fetched HTML to fix parsers
.venv/bin/python tracker.py --fetcher direct # no API: requests, or Playwright for "render": true pagesRun it from the project folder: it reads products.json, .env and prices.db from the current
directory.
Run it about every 6 hours with cron:
0 * * * * cd /path/to/gpu-price-tracker && .venv/bin/python tracker.py --min-hours 6 >> tracker.log 2>&1
Add an entry to products.json with the card's model name, SKU, MSRP (or null) and one product
URL per store. Amazon pages also take an "asin", and pages that need JavaScript rendering take
"render": true.
- Price drop. A new, in-stock offer is below the lowest price that held for two checks at any store in the last 30 days. The drop must also hold for two checks in a row. Until a GPU has 3 checks, its MSRP is the baseline. Without an MSRP, it compares against every price seen since the first scrape.
- Restock. An offer goes from sold out or preorder to in stock, at any price.
- Restocks always alert. The same price-drop alert isn't sent twice for one offer within 30 days.
| File | What it does |
|---|---|
products.json |
GPUs to track: model, SKU, MSRP, one product URL per store |
fetchers.py |
Gets pages through the Decodo Web Data API (default), or directly with requests / Playwright |
parsers.py |
Extracts offers from each store's page; normalizes price, stock and condition |
storage.py |
SQLite schema: one row per offer per check, plus sent alerts |
alerts.py |
Price-drop and restock rules, Discord webhook |
tracker.py |
Runs one check of every page; schedule it with cron |
Released under the MIT License.
