Skip to content

cihatislamdede/amazon-price-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amazon Price Tracker Discord Bot

A Discord bot that tracks the price of a product on Amazon and notifies the user when the price drops below a certain threshold.

Installation

  1. Clone the repository.

  2. Install the required dependencies using the following command:

    pip install -r requirements.txt
  3. Create a .env file in the root directory of the project and add the following environment variables:

    BOT_TOKEN=<your-bot-token>
    CHANNEL_ID=<discord-channel-id-for-notifications>
    POSTGRES_DB=amazon_price_track
    POSTGRES_USER=postgres
    POSTGRES_PASSWORD=postgres
    POSTGRES_HOST=db # db is the name of the service in docker-compose.yml

    Note: You can get your bot token from here.

Usage

  1. Run the main Python file using the following command:

    python bot.py

Docker

  1. Build the Docker image using the following command:

    docker compose build
  2. Run the Docker container using the following command:

    docker compose up