Telegram bot to download almost all from Instagram

Overview

Instagram Manager Bot

The most advanced Instagram Downloader Bot.

Please fork this repository don't import code
Made with Python3
(C) @subinps
Copyright permission under MIT License
License -> https://github.com/subinps/Instagram-Bot/blob/main/LICENSE

You can Download almost anything From your Instagram Account.

What Can Be Downloaded?:

    1. All posts of any Profile. (Both Public and Private profiles which you follows.)
    2. All Posts from your feed.
    3. Stories of any profile (Both Public and Private profiles which you follows.)
    4. DP of any profile (No need to follow)
    5. Followers and Followees List of any Profile.
    6. Stories of your Followees.
    7. Tagged posts of any profile.
    8. Your saved Posts.
    9. IGTV videos.
    10. Highlights from any profiles.
    11. Any Public Post from Link(Post/Reels/IGTV)

Available Commands and Usage

/start - Check wheather bot alive.
/restart - Restart the bot (If you messed up anything use /restart.)
/help - Shows this menu.
/login - Login into your account.
/logout - Logout of your account.
/account - Shows the details of logged in account.

/posts <username> - Download posts of any username. Use /posts to download own posts or  /posts <username> for others.
Example : /posts samantharuthprabhuoffl

/igtv <username> - Download IGTV videos from given username. If no username given, downloads your IGTV.

/feed <number of posts to download> - Downloads posts from your feed.If no number specified all posts from feed will be downloaded.
Example: /feed 10 to download latest 10 posts from feed.

/saved <number of posts to download> - Downloads your saved posts. If no number specified all saved posts will be downloaded.
Example: /saved 10 to download latest 10 saved posts.

/followers <username> - Get a list of all followers of given username. If no username given, then your list will be retrieved.
Example: /followers samantharuthprabhuoffl

/followees <username> - Get a list of all followees of given username. If no username given, then your list will be retrieved.

/tagged <username> - Downloads all posts in which given username is tagged. If nothing given your tagged posts will be downloaded.

/story <username> - Downloads all stories from given username. If nothing given your stories will be downloaded.

/stories - Downloads all the stories of all your followees.

/highlights <username> - Downloads highlights from given username, If nothing given your highlights will be downloaded.

Deploy to Heroku

Deploy

While Deploying fill INSTA_SESSIONFILE_ID, either by running generate_instagram_session.py in terminal or using /login after deploy or use repl.it

For Generating Session after deployment, You Must leave the Variable as blank and fill manually after generating INSTA_SESSIONFILE_ID from your bot by sending /login.

Deploy to VPS

git clone https://github.com/subinps/Instagram-Bot
cd Instagram-Bot
pip3 install -r requirements.txt
# <Create Variables appropriately>
python3 main.py

Variables

Note

Contributions are welcomed, But Kanging and editing a few lines wont make you a Developer.
Fork the repo, Do not Import code.

Support

Connect Me On Telegram

LEGAL DISCLAIMER

Developer or his team won't be liable for any loss caused by MISUSE of this Script.
This Bot is Indended to be used only for Educational Purposes.

Comments
  • Bot sends low quality photos

    Bot sends low quality photos

    The bot sends compressed images. There may be 2 reason :-

    1. the images that are downloaded by bot from telegram are in low quality
    2. the bot may be downloading high quality images but are compressed by telegram ( Telegram compresses files only if bot sends 'file as photo.) This can be overcome by setting 'file as document'.

    Hope you understand it and solve this.

    opened by Pranjal-Rajput-IITian 1
  • Update regex to support usernames in content link

    Update regex to support usernames in content link

    Certain Instagram post links are now in the format https://www.instagram.com/username/p/shortcode/

    This commit will match optionally

    Examples: https://www.instagram.com/anaswara.rajan/p/CXQezlSJPoR/ https://www.instagram.com/taylorswift/p/CWds7zapgHn/

    • Removed redundant escape character
    • Updated example in config.py
    opened by SayanthD 0
  • Bot will not download over 400 saved posts at once

    Bot will not download over 400 saved posts at once

    Hi! Due to the fact that the bot doesn't seem to download the posts in an order, I can't download my large saved collection of instagram posts without manually finding each and every post that it downloaded and unsaving it before calling the /saved command again.

    Proposed solutions:

    1. an option to unsave posts after they are downloaded.
    2. an option to save a range of posts in whatever order they are seen. (i.e. /saved 400-800)
    3. an option to try to save all of the posts by reestablishing the connection after 400. (i.e. /saved all)
    opened by alexlyee 0
  • error for download videos or history

    error for download videos or history

    error download Story, ...Profile ok download, but Story no `Logged in as nicomarkguzmn.

    Finished Output Traceback (most recent call last):

    File "/home/markosc/.local/bin/instaloader", line 8, in

    sys.exit(main())
    

    File "/home/markosc/.local/lib/python3.9/site-packages/instaloader/main.py", line 471, in main

    _main(loader,
    

    File "/home/markosc/.local/lib/python3.9/site-packages/instaloader/main.py", line 182, in _main

    profile = instaloader.check_profile_id(target, latest_stamps)
    

    File "/home/markosc/.local/lib/python3.9/site-packages/instaloader/instaloader.py", line 1326, in check_profile_id

    profile_id = self.load_profile_id(profile_name)
    

    File "/home/markosc/.local/lib/python3.9/site-packages/instaloader/instaloader.py", line 1289, in load_profile_id

    with open(id_filename, 'rb') as id_file:
    

    NotADirectoryError: [Errno 20] Not a directory: '709460828/schwarzenegger/schwarzenegger_id'

    Finished No error Gif- []

    Video - []

    Pictures - []

    `

    opened by markosc 0
  • download in order

    download in order

    good day, it is possible that the download of the images, videos, etc can be downloaded in order, because I see that the download does not respect the order of the publication ((by time and date)) but rather the type of file, thanks for this wonderful plugin

    opened by markosc 0
  • Getting error after filling INSTA_SESSIONFILE_ID in config.py

    Getting error after filling INSTA_SESSIONFILE_ID in config.py

    Bot works fine before but after fill INSTA_SESSIONFILE_ID in config.py can't run main.py. Error -

    ~/Instagram-Bot-main# python3 main.py
    Traceback (most recent call last):
      File "/usr/local/lib/python3.8/dist-packages/pyrogram/file_id.py", line 228, in decode
        file_type = FileType(file_type)
      File "/usr/lib/python3.8/enum.py", line 339, in __call__
        return cls.__new__(cls, value)
      File "/usr/lib/python3.8/enum.py", line 663, in __new__
        raise ve_exc
    ValueError: 220 is not a valid FileType
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "main.py", line 47, in <module>
        bot.run(main())
      File "/usr/local/lib/python3.8/dist-packages/pyrogram/methods/utilities/run.py", line 51, in run
        run(coroutine)
      File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
        return future.result()
      File "main.py", line 42, in main
        await bot.download_media(Config.INSTA_SESSIONFILE_ID, file_name=f"./{Config.USER}")
      File "/usr/local/lib/python3.8/dist-packages/pyrogram/methods/messages/download_media.py", line 122, in download_media
        file_id_obj = FileId.decode(file_id_str)
      File "/usr/local/lib/python3.8/dist-packages/pyrogram/file_id.py", line 230, in decode
        raise ValueError(f"Unknown file_type {file_type} of file_id {file_id}")
    ValueError: Unknown file_type 220 of file_id 3A......OzxoK....Cjm7cc_W.....SanoqIs.....3TwlQ
    

    (INSTA_SESSIONFILE_ID is correct) Looking forward to a solution. Thank you...

    opened by SanujaNS 0
Owner
SUBIN
NOthInG gRatE
SUBIN
Instagram-follower-bot - An Instagram follower bot written in Python

Instagram Follower Bot An Instagram follower bot written in Python. The bot follows the follower of which account you want. e.g. (You want to follow @

Aytaç Kaşoğlu 1 Dec 31, 2021
Unofficial instagram API, give you access to ALL instagram features (like, follow, upload photo and video and etc)! Write on python.

Instagram-API-python Unofficial Instagram API to give you access to ALL Instagram features (like, follow, upload photo and video, etc)! Written in Pyt

Vladimir Bezrukov 1 Nov 19, 2021
My telegram bot to download Instagram Profiles

Instagram Profile Get for Telegram My telegram bot to download Instagram Profiles First you have to get a telegrm bot api key from @BotFather Then you

Ali Yoonesi 2 Sep 22, 2022
A Telegram bot to download posts, videos, reels, IGTV and a user profile picture from Instagram!

Telegram Bot A telegram bot to download media from Instagram! No API Key or Login Needed! Requirements You must have python installed (of course) You

Simon Farah 2 Apr 10, 2022
📷 Instagram Bot - Tool for automated Instagram interactions

InstaPy Tooling that automates your social media interactions to “farm” Likes, Comments, and Followers on Instagram Implemented in Python using the Se

Tim Großmann 13.5k Dec 1, 2021
An instagram bot developed in Python with Selenium that helps you get more Instagram followers.

instabot An instagram bot developed in Python with Selenium that helps you get more Instagram followers. Install You’ll need to have: Python Selenium

null 65 Nov 22, 2022
Instagram bot that upload images for you which scrape posts from 9gag meme website or other Instagram users , which is 24/7 Automated Runnable.

Autonicgram Automates your Instagram posts by taking images from sites like 9gag or other Instagram accounts and posting it onto your page. Features A

Mastermind 20 Sep 17, 2022
Upload-Instagram - Auto Uploading Instagram Bot

###Instagram Uploading Bot### Download Python and Chrome browser pip install -r

byeonggeon sim 1 Feb 13, 2022
Telegram PHub Bot using ARQ Api and Pyrogram. This Bot can Download and Send PHub HQ videos in Telegram using ARQ API.

Tg_PHub_Bot Telegram PHub Bot using ARQ Api and Pyrogram. This Bot can Download and Send PHub HQ videos in Telegram using ARQ API. OS Support All linu

TheProgrammerCat 13 Oct 21, 2022
A Python Instagram Scraper for Downloading Profile's Posts, stories, ProfilePic and See the Details of Particular Instagram Profile.

✔ ✔ InstAstra ⚡ ⚡ ⁜ Description ~ A Python Instagram Scraper for Downloading Profile's Posts, stories, ProfilePic and See the Details of Particular In

null 12 Jun 23, 2022
This Instagram app created as a clone of instagram.Developed during Moringa Core.

Instagram This Instagram app created as a clone of instagram.Developed during Moringa Core. AUTHOR By: Nyagah Isaac Description This web-app allows a

Nyagah Isaac 1 Nov 1, 2021
Projeto Informações Conta do Instagram - Instagram Account Information Project

Projeto Informações Conta do Instagram - Instagram Account Information Project Descrição - Description Projeto que exibe informações de perfil, lista

Thiago Souza 1 Dec 2, 2021
Instagram Brute force attack helps you to find password of an instagram account from your list of provided password.

Instagram Brute force attack Instagram Brute force attack helps you to find password of an instagram account from your list of provided password. Inst

Naman Raj Singh 1 Dec 27, 2021
Instagram - Instagram Account Reporting Tool

Instagram Instagram Account Reporting Tool Installation On Termux $ apt update $

Aryan 6 Nov 18, 2022
Web-music-bot - A telegram bot which get a *site Url* and sends all songs contain in the Url to telegram

web music bot this is a telegram bot which get a site Url and sends all songs co

Arya Shabane 4 Apr 2, 2022
null 1 Feb 18, 2022
A telegram bot that can upload telegram media files to anonfiles.com and give you direct download link

✯ AnonFilesBot ✯ Telegram Files to AnonFiles Upload Bot It will Also Give Direct Download Link Process : Fork This Repositry And Simply Cick On Heroku

Avishkar Patil 38 Dec 30, 2022
A Simple Telegram Bot By @AsmSafone to Download Files From Mega.nz and Upload It to Telegram

MegaDL-Bot A Simple Telegram Bot By @AsmSafone to Download Files From Mega.nz and Upload It to Telegram Features No Login Required All Mega.nz File Li

SAF ONE 92 Dec 2, 2022
A Telegram bot to download youtube playlists and upload them to telegram. (may be slow becoz youtube limitations)

YTPlaylistDL ?? A Telegram bot to download youtube playlists and upload them to telegram. (may be slow becoz youtube limitations) ?? Follow me and sta

Anjana Madu 43 Dec 28, 2022