Skip to content

arshaikh13/AmazonPriceMonitor-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“¦ Amazon Price Tracker

A Python script that monitors the price of a specific Amazon product and sends an email alert when the price meets or drops below a specified threshold.

πŸš€ Features

  • Amazon Product Scraper – Fetches product title and price using requests and BeautifulSoup.
  • Robust HTML Parsing – Multiple fallback selectors for title and price extraction.
  • Price Monitoring – Runs on an infinite loop with a configurable delay between checks.
  • Email Notifications – Sends alerts when the target price condition is met.
  • Logging & Debugging – Logs key actions and errors for troubleshooting.

πŸ“‚ Project Structure

amazon_price_tracker/ β”‚ β”œβ”€β”€ tracker.py # Main script β”œβ”€β”€ response.html # Saved HTML response (for debugging) └── README.md # Project documentation

πŸ›  Requirements

  • Python 3.7+
  • The following Python packages:
    pip install requests beautifulsoup4

The script will:

  1. Fetch the Amazon page.
  2. Extract the product name and price.
  3. Compare it to your threshold.
  4. Send you an email if the price meets your condition.
  5. Wait 2 hours before checking again.

πŸ“ Logging

Logs are printed to the console. HTML responses are saved to response.html for inspection when parsing fails.

Sample Output

2025-08-12 21:00:00 - INFO - Response status code: 200 2025-08-12 21:00:00 - INFO - Found title: Sony WH-1000XM4 Wireless Headphones 2025-08-12 21:00:00 - INFO - Found price: $179.99 2025-08-12 21:00:00 - INFO - Price drop detected! Email sent, stopping monitoring.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages