Skip to content

Alcatraz312/Amazon-price-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amazon price tracker 💸

MIT License

GitHub last commit (by committer)

GitHub top language

Get the best deals on items you have been longing to buy on Amazon! This program uses web scraping to track the prices of the of your desired items on Amazon. It automatically sends you an email notification when the price drops below a threshold you've specified, ensuring you never miss out on great deals.

Getting Started

Prerequisites

Before using the program, you'll need the following:

  • Python 3.6 or higher installed on your system.
  • 2-Step verification for your email (for Gmail and yahoo users).
  • Gmail or Yahoo app.
  • Your "User-Agent" and "Accept-Language" from HTTP Headers.

Installation

  1. Clone this GitHub repository to your local machine:
git clone https://github.com/Alcatraz312/Amazon-price-tracker.git
  1. Change into the project directory:
cd Amazon-price-tracker
  1. Create a virtual python environment for your project:
python -m venv environment
  1. Activate the virtual environment
  • Linux:
. <path_to_env>/bin/activate
  • Windows (Powershell):
<path_to_env>/Scripts/Activate.ps1
  • Windows (Command prompt):
<path_to_env>/Scripts/Activate.bat
  1. Upgrade pip to the latest version:
python.exe -m pip install --upgrade pip
  1. Install the required python packages using pip:
pip install -r requirements.txt

Configuration

To use this program, you need to set up an app password if you use Gmail or yahoo.

  1. Turn on 2-Step Verification for your email under the Security settings for your account.

  1. Add an app password under your email settings.

  1. Copy the password and replace the values in config.py with your credentials and email service provider.
email_provider = "smtp.gmail.com"  #Your email provider
email_ID = "YOUR EMAIL ID"
password = "YOUR APP PASSWORD"
  1. Replace the values of http headers in scraping.py with your "User-Agent" and "Accept-Language" values.
    headers = {
    "User-Agent" : "YOUR User-Agent",
    "Accept-Language" : "en-US,en;q=0.9"
    }                               #class attribute

Usage

  1. Run the script by executing the following command in the terminal:
python main.py
  1. The program will prompt you to enter the URL of your desired item from amazon.

  2. Let the program handle the tracking for you. Receive email notifications as soon as the price drops!

Contribution

  1. Fork the repository and create a new branch for your feature or bug fix.

  2. Make your changes, and ensure that your code follows the PEP 8 style guide.

  3. Write tests to cover your code if applicable.

  4. Create a pull request with a clear description of your changes and why they are needed.

  5. Your pull request will be reviewed, and once approved, it will be merged into the main branch.

license

This project is licensed under the MIT License - see the LICENSE file for details.

About

Tracks the price of an item on amazon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages