đź›’ Project Summary: Amazon Product Price Tracker with WhatsApp Alerts
This Python project automates Amazon product scraping and sends WhatsApp alerts with screenshots when certain products are found under a desired price. It uses Selenium, BeautifulSoup, and PyWhatKit to perform web automation, data collection, and messaging.
🔹 Step-by-Step Function Summary
1. getPandaDfForSearchResults(searchResultsPage)
Extracts product details (Title, Price, Sponsored flag, and URL) from a single Amazon search results page using BeautifulSoup.
Returns a Pandas DataFrame with these columns:
TitleSponsored(True/False)PriceURL
2. getDFfromURL()
Launches Selenium Chrome WebDriver to open an Amazon search page (for example, PRS SE Custom 24 guitars).
Iterates through all search result pages by clicking the “Next” button until the last page is reached.
Calls
getPandaDfForSearchResults()for each page and merges all data into one DataFrame.Cleans the price column (removes commas, converts to float).
Returns a complete DataFrame containing all search results.
3. sendWhatsAppMessage(df)
Sends WhatsApp image messages for each qualifying product.
For every product in the given DataFrame:
Opens the product’s Amazon page in Selenium.
Takes a screenshot of the product page.
Sends the image and product link to a specified WhatsApp number using
pywhatkit.sendwhats_image().
4. start()
Continuously runs the search in an infinite loop until a matching product is found.
Filters results to only include products:
Whose title contains
"Custom 24"And are priced ≤ ₹86,000
When such products appear, it:
Sends WhatsApp alerts via
sendWhatsAppMessage()Prints the DataFrame of found items
Stops the loop
If no products match, it waits 60 seconds and searches again.
5. start() Execution
The program starts automatically when the script runs.
Continuously monitors Amazon search results, automating both data collection and user notification.
⚙️ Technologies Used
Python
Selenium WebDriver — for web navigation and screenshots
BeautifulSoup (bs4) — for HTML parsing
Pandas — for data storage and filtering
PyWhatKit — for WhatsApp automation
Chromedriver_binary — for automatic Chrome driver management
đź’ˇ In Simple Terms
The script monitors Amazon search results for a specific product (e.g., “PRS SE Custom 24 guitar”).
When it finds one below your target price, it takes a screenshot of the product and instantly sends you a WhatsApp message with the image and link, so you never miss a deal.