/pinterest-telegram-bot

Downloads Pinterest image from the given Pinterest shared URL and sends it back in telegram

Primary LanguagePythonMIT LicenseMIT

Pinterest Telegram Bot

License: MIT Code style: black

Overview:

A Telegram bot that downloads videos, images, GIFs from Pinterest based on user input and sends it back to the user via Telegram.

demo

Support:

Category Support
Language Python 3.6 and above

Installation

$ git clone https://github.com/Dineshkarthik/pinterest-telegram-bot.git
$ cd pinterest-telegram-bot
$ pip3 install -r requirements.txt

Configuration

TOKEN: 'YOUR_BOT_TOKEN'
WEBHOOK_URL: 'https://<YOUR_APP_NAME>.herokuapp.com'
REDIS_URL: 'redis://<USER_NAME>:<PASSWORD>@<HOST>:<PORT>'
  • token - Your Telegram Bot API Token, to get the token follow the instructions available here.
  • webhook_url - Heroku app url. Instructions for deploying a python to heroku app can be found here.
  • redis_url - Redis is used to cache scraped urls to increase performance, check how to use heroku redis here.

Execution

$ python3 pinterest_telegram_bot.py