DEV Community

Mustapha Sahli
Mustapha Sahli

Posted on

đź›’ I Built an Amazon Price Tracker to Monitor Multiple Products and Get Price Drop Alerts

Tired of checking Amazon every day to see if a product’s price went down?

So was I. That’s why I built a simple tool that automatically tracks prices on multiple Amazon items and alerts me when they drop — no browser extensions, no manual checking.

In this post, I’ll walk you through:

  • The problem that led me to build this
  • How it works behind the scenes
  • Key features
  • Lessons I learned
  • And how you can get or build something similar

🚨 The Problem: Price Watching Wastes Time

I often add items to my Amazon wishlist and wait for discounts.

But unless I checked manually — daily or weekly — I’d miss the best deals.

Most price-tracking extensions are:

  • Browser-dependent
  • Limited to one product
  • Bloated or subscription-based

As a developer who loves automating boring stuff, I knew I could do better.


đź§° The Solution: A Simple Python Script

I wrote a Python script that does the job without needing to open a browser or install anything extra. It runs locally and quietly checks all the Amazon product URLs I give it.

Main features:

  • âś… Add/remove multiple products
  • âś… Check all prices instantly or on a daily schedule
  • âś… Email alerts when prices drop
  • âś… Tracks product title, current price, and date
  • âś… Easy CLI menu for interaction

đź§Ş Under the Hood: Tools & Libraries

import requests
from bs4 import BeautifulSoup
import schedule
import time
import smtplib
from email.message import EmailMessage
Enter fullscreen mode Exit fullscreen mode

I used:

  • requests + BeautifulSoup to scrape Amazon product pages

  • schedule to automate daily checks

  • smtplib to send email alerts to myself (configurable)

  • CSV file to store and update product data

The script runs on any machine with Python 3 installed.

🖼️ Menu System: Simple and Clean

1. Add product to track
2. Remove product
3. List tracked products
4. Check all prices now
5. Start scheduled monitoring
6. Configure email alerts
7. Change schedule time
8. Exit
--------------------------------------------------
đź“… Current schedule: Daily at 09:00
đź“§ Email alerts: Disabled
📦 Tracked products: 0
--------------------------------------------------
Select an option (1-8):
Enter fullscreen mode Exit fullscreen mode

📬 What a Price Drop Email Looks Like

If a tracked item’s price drops, you’ll get an alert like this:

Subject: đź”” Price Drop Alert: Wireless Headphones

Good news! The price has dropped from $89.99 to $64.99

Product: Wireless Headphones
Link: https://www.amazon.com/dp/B07XXXXX

🔄 Challenges Faced

Amazon’s layout varies per region and product — had to add multiple selectors

Some products don’t show price due to availability/stock

Rate-limiting and user-agent headers required for stable scraping

Handling multiple URLs without hardcoding was key

đź’ˇ What I Learned

  • Automating small personal problems can lead to useful tools

  • Even a CLI app can save people time & money

  • Building your own tools makes you a better programmer

📦 Want to Try It?

I’ve packaged everything and made it available here:
👉 Amazon Multi-Product Price Tracker on Gumroad

Includes:
Script files (.py)
PDF setup instructions
Lifetime access + updates

đź”— Bonus: See It on X

I also shared the launch on X (Twitter) here:
👉 https://x.com/TailoooorSahli/status/1937197401913327630

đź’¬ Final Thoughts
This started as a side project to save time, but it turned into something others find useful too.
If you like automating daily tasks or saving money on Amazon, I’d love to hear your feedback — or help you build your own version.

Thanks for reading! 🙌
Feel free to reach out or connect with me!

Top comments (0)