In this project we made a simple web scraping tool using Beautiful soup and Python Request library. Which regularly checks the price of an item and when the price does go down it send an Email to the user alerting them that the price has decreased.
This is a great project for someone who is interested by the concept of web scraping and the endless amount of project you could do with it.
- Make sure you have Python (Version 3.6 or higher) installed in your system.
- Open the folder in CMD or terminal and type
pip install -r requirements.txt
- Now edit the main.py file using your favorite code editor(Example: Sublime text editor, VSCode, Vim).
- Change
sender_email
,sender_password
,receiver_email
to your email,password
(Example: In place of sender_email at line 22,23 - change it yours email "youremail@gmail.com" ) similarly change sender_password and reciver_email
- Replace the product link in URL with your link.
at line 9 (Example:
url:'https://www.amazon.in/G731GT-Graphics-i5-9300H-Windows-G731GT-AU022T/dp/B07S36XJ8Q/'
) - Now save the file, close the editor and run main.py.
Your laptop with python 3.6.x (onwards) installed.
NOTE: Those with Linux and MacOSX would have Python installed by default, no action required.
Windows: Download the version for your laptop via https://www.python.org/downloads/
NOTES In your preferred editor, make sure indentation is set to "4 spaces".
- Clone or download repositiory: https://github.com/arevish/amazon_price_tracker.git
- In source folder, run
python3 'main.py'
to start program, optionally, run with--help
argument to see other runtime options.