Skip to content

chitranjan-gupta/Flipkart-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flipkart Product Price Tracking Telegram Bot.

Description

Weary about continuously checking the decrease in the price of the product you want to purchase from Flipkart? Do not worry; The Flipkart bot will help you in achieving it. The Flipkart bot will check the price constantly. And if the price has decreased. Then it will send a notification on telegram.

Run Live on Telegram

Installation Guide

Prerequisites

Local Setup

The setup is given here is for a linux environment.

  • Clone the project
$ git clone https://github.com/chitranjan-gupta/Flipkart-Bot.git
  • Go to the project directory
$ cd Flipkart-Bot
  • Create and activate virtual environment
$ python3 -m venv venv
$ source venv/bin/activate
  • Install python dependencies
$ pip3 install -U -r requirements.tt

Environment Variables

Properly setup the enviroment variables or populate bot.py with the values. Setting the environment variables is advised as some of the values are sensitive data, and should be kept secret.

  • BOT_TOKEN - Telegram Bot Token. Obtain your bot token from Bot Father.

To know how to add the token visit wiki.

Run the bot

$ python3 bot.py

Now go and /start the bot. If everything went fine, the bot will respond with welcome message.

  • Now send the link of product to bot and send the command /tstart to start tracking.

Supported commands

  • /start - Command to start the bot or check whether the bot is alive.
  • /tstart - Command to start the tracker.
  • /tstop - Command to stop the tracker.

Dependencies

  • BeautifulSoup
  • requests
  • aiogram
  • lxml

Supported Environment

Documentation

Read the documentation on wiki.

License

MIT License