Automated Price Tracker
August 2024
PROJECTS
11/9/20241 min read
I created this project as part of an online course I took on Udemy.com. The goal was to use Python to monitor prices of target items on Amazon, and send emails automatically once an item drops to a desired price.
The first step was to get an item's data from Amazon using the requests module and get hold of the item's name and current price using the beautifulsoup module. The next step was to create environment variable (.env) file to store the email service (Gmail), one sender email address and its "app password" and one receiver email address. For this project, I use the same address to send the notification to the same inbox.
After setting a target price, I proceeded to load the environment variable's data using the dotenv module, created the content of the email and created a secure connection using the smtplib module.
i repurposed an old laptop as a Linux server where I deployed the Python script and created a cron job to run the script at specific times. This is just the beginning of this project, and I plan to update it to include more items.