Price tracker
A small Python script that checks a product’s price every hour and tells you when it drops. It caught a $459 drop on my MacBook Pro.
- Language
- Python 3
- Runs on
- Your computer, in Chrome
- Licence
- MIT
- Saved me
- $459
I bought a MacBook Pro from Micro Center for $4,589.99, knowing the store will match a lower price if it drops after you buy. The same day I had this script watch the price. On day 14 it dropped to $4,130.99, and Micro Center refunded me the difference.
What it does
You give it a product link and how often to check. It opens a normal Chrome window, reads the price, and prints whether it dropped, went up or stayedunchanged since the last check. Every price is saved toprice_history.csv, so you have a record when you go back to the store.
The gap has closed
A few years ago, “write a script that checks a web page every hour” was a job for a programmer. Now AI assistants like ChatGPT, Claude and Claude Code have closed most of that gap: you describe what you want in plain English and get working code back.
That’s how this one started. I asked for a small Python script that takes a product link and checks the price every hour. The rest was the real store:
- The store blocked plain requests. Micro Center showed a “Just a moment…” check page, so the script drives a real Chrome window and waits up to two minutes for you to get past the check.
- A page reported a price that wasn’t there. A discontinued listing still had an old price hidden in its code, so the script now skips products marked “no longer carried”.
You don’t need to know Python to use it, or to change it. If you want an email or a phone notification instead of a line in the terminal, ask an AI assistant to add one.
How it works
It uses Playwright to control the Chrome you already have installed. It reads the price from Micro Center’s product data, or from the standard product data (JSON-LD) that many other stores publish. The whole thing is about 120 lines.
Get the script
You need Python 3 and Google Chrome. Download the repository from GitHub(Code → Download ZIP), open a terminal in its folder, and set it up once:
python3 -m venv .venv
.venv/bin/pip install -r requirements.txtThen run it, paste the product link, and choose how many minutes between checks (60 by default):
.venv/bin/python price_tracker.py- Keep your computer awake. It only checks while the script is running.
- Check the first price by eye. Compare the first printed price with the one in the browser window.
- Know your store’s deadline. Price adjustments usually apply only for a limited time after you buy, often the return window.
The full story, including how to set up a price watch with an AI assistant and no script at all, is in How a price tracker got me $459 back on my MacBook Pro.