Giter Club home page Giter Club logo

trackrbot's Introduction

TrackrBot v2.0

Buy Me A Coffee

Description

A Telegram chatbot that helps you set price alerts for amazon products. The bot checks the price of your watchlisted products every day and sends you an alert message when it reaches the target price. After adding a product to the watchlist you recieve a product price chart every 30 days until the product reaches its target price. It is deployed on Replit and developed using the pyTelegramBotAPI, ScraperAPI and Google Sheets API.

Telegram link for TrackrBot

Demo

Demo

Price Chart

Price Chart

APIs Used:

How it works?

Telegram Bot

* User sends a URL to the bot.
* Bot validates the URL and then sends it to ScraperAPI.
* ScraperAPI returns a response object which is then parsed using BeautifulSoup.
* Bot displays the product name and price then asks the user for a price alert.
* On success the details are added to the Replit Database which is a simple key value store.

Price Tracker

* Checks if any new products are added to the Replit DB and then adds them to Google Sheets.
* Checks if any products are deleted from the Replit DB and then deletes them from Google Sheets.
* Scrapes amazon for every product in the Replit DB and updates the sheet with the current price.
* If current price <= target price it sends the user a price alert on telegram.
* If a product column has 30 price values on Google Sheets it sends a price chart to the user. 

How to contribute?

Contributions, issues and feature requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

  • GitHub
    • Fork this repository on GitHub and clone it on your local machine.

      $ git clone https://github.com/<your-username>/trackrBot.git
      
    • Create your Feature Branch (git checkout -b feature/AmazingFeature)

    • Commit your Changes (git commit -m 'Add some AmazingFeature')

    • Push to the Branch (git push origin feature/AmazingFeature)

    • Open a Pull Request

  • Recommended: Replit
    • Fork this project on Replit. This saves you the trouble of setting up the environment and installing the libraries.

Links to Replit

How to Support?

Currently this project uses the free tier of ScraperAPI which only provides a 1000 requests a month. If you like this project consider making a donation at Buy Me a Coffee so I can buy the paid plan which costs $29.

Features I plan to add once I'm able to switch to the paid plan:

  • Increasing the watchlist capacity from 3 to 30 products.
  • Increasing the number of times the bot checks amazon for change in price of a product from 1 to 24 times a day.
  • Making the price chart feature more customisable.

trackrbot's People

Contributors

rittikbasu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.