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.
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
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.
$ 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.
/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.
- BeautifulSoup
- requests
- aiogram
- lxml
Read the documentation on wiki.