Giter Club home page Giter Club logo

telegrambot-for-instagram's Introduction

Telegrambot-for-Instagram

This telegram bot is used for downloading public posts from instagram and everyone's DP. (Private Profile pictures also)

PS : BOT is Working 🥳

Tutorial to Get Working BOT

Click Here To Open Youtube Link

Before running this project

  • If chrome not installed Install it.
  • Open Chrome and Check for Version in Help-->About Chrome
  • Open Chromedriver Download Page and download driver with version matching with Your Chrome version.
  • Extract zip you will get chromedriver

Follow this steps to get your bot Working:

Note : BotFather is telegrams official bot to create other bots.
  • Send /newbot command to @BotFather
  • Now send your bot name to botfather. eg InstaDownloaderBot
  • Now send username for your bot it must ends with 'bot'. eg instascrapper_bot
  • Congratulations ! Your bot is created successfully.
  • Now copy HTTP API token and keep it secure.
  • Download and unzip above source code.
  • Open terminal/console to telegrambot-for-instagram
  • Run following command in CMD/Console pip install -r requirements.txt
  • Open InstagramScraperBot.py and search line number 18 and replace 'YOUR_TOKEN_HERE' with your HTTP API token which we got from @BotFather and save it.
  • Copy webdriver downloaded above to folder where InstagramSracperBot.py is located.
  • If you are on Windows uncomment Line Number 34
  • If you are on Linux uncomment Line Number 31
  • Find line number 39 & 41 and add your instagram USERNAME and PASSWORD
  • Save the code and run using command python InstagramSracperBot.py
  • It will open chrome window and automatically goes to Instagram.com and Login with Your Username and Password
  • If instagram asks you for OTP enter it and after successful Login check if your bot replies you or not.
  • After successful running this bot you can uncomment lines from 21 to 25 to Disable Chrome GUI
  • Re-run Bot And Check Your bot Is Replying you.

How to deploy on Heroku

This is now tested only locally. To run on heroku we need to setup some plugins there.

WILL UPDATE THIS AFTER SUCCESSFUL TESTING WITH HEROKU

Usage

How to get profile pic ?

  • Simply send this to bot -> /instadp username
  • Bot will send image in a while !

How to get all photos of user ?

  • Simply send this to bot -> /instaAllPhotos username
  • Bot will send all iamges 1 by 1

Contributing

Pull requests are welcome.

Contact

telegrambot-for-instagram's People

Contributors

vinayak-09 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

telegrambot-for-instagram's Issues

Bot doesn't answer

Hi friend!
Thanks for your project!

Something is wrong when i repeat your steps. But bot doesn't answer in telegram.
I create the bot, made my repository with the bot's token api and I made a successfully deploy with heroku.

What mistake i made?

Thanks for your attention!

ModuleNotFoundError: No module named 'telegram.ext'

Traceback (most recent call last):
  File "TelegramBotInsta.py", line 7, in <module>
    from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
ModuleNotFoundError: No module named 'telegram.ext'

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.