Amazon Price Tracker Discord Bot

October 24th, 2022

PythonMongoDBDockerAmazon AWSDiscordGmail

In the world of online shopping, keeping track of price fluctuations can be a tedious task. Enter the Amazon Price Tracker Discord Bot, a powerful tool that automates this process for Amazon.ca products. This bot not only tracks prices but also notifies users through Discord pings and email alerts when their desired products go on sale.

Try it out on Discord

Key Features

The Amazon Price Tracker Bot offers several user-friendly commands:

  • !help: Display available commands
  • !track <email_address> <amazon_link>: Start tracking a product
  • !stop <amazon_link>: Stop tracking a product
  • !view: View currently tracked products

These commands allow users to easily manage their price tracking preferences directly through Discord.

How It Works

Tracking a Product

When a user wants to track a product, they use the !track command:

Track Command

The bot captures the user's email address, Amazon product link, user ID, and channel ID, storing this information in a MongoDB database.

Viewing Tracked Products

Users can see what products they're currently tracking with the !view command:

View Command

This provides a quick overview of all items being monitored for price changes.

Notification System

When a price drop is detected, the bot notifies users in two ways:

  1. Discord Ping: Discord Ping The bot sends a message in the Discord channel, alerting users to the price change.

  2. Email Alert: Email Alert An email is sent to the user's provided address with details about the price drop and a link to the product.

Technical Implementation

The Amazon Price Tracker Bot leverages several technologies:

  • Asynchronous Web Scraping: For efficient price checking across multiple products
  • MongoDB: For storing and managing product and user data
  • Gmail API: For sending email notifications
  • Discord API: For bot interactions and Discord notifications
  • Docker: For containerization, ensuring easy deployment and scalability
  • AWS: For hosting the bot, providing reliable uptime

Conclusion

The Amazon Price Tracker Discord Bot demonstrates the power of combining various APIs and technologies to create a useful tool for online shoppers. By automating the price tracking process and providing timely notifications, it saves users time and potentially money on their Amazon purchases.

This project showcases how developers can create practical solutions to everyday problems using modern web technologies and APIs. Whether you're a developer looking to create your own bot or a shopper interested in automating your price tracking, the Amazon Price Tracker Bot serves as an excellent example of what's possible with a bit of coding creativity.

For those interested in trying out the bot or viewing its source code, you can find more information on the GitHub repository.