Git Product home page Git Product logo

instagram-bot's Introduction

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,for private profiles you need to be a follower.)
    2. All Posts from your feed.
    3. Stories of any profile (Both Public and Private,for private profiles you need to be a follower.)
    4. DP of any profile (No need to follow)
    5. Followers and Followees List of any Profile.
    6. List of followees who follows back the given username.
    7. List of followees who are not following back the given username.
    8. Stories of your Followees.
    9. Tagged posts of any profile.
    10. Your saved Posts.
    11. IGTV videos.
    12. Highlights from any profiles.
    13. 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.

/fans <username> - Get a list of of followees who follow back the given username. If no username given, your list will be retrieved.

/notfollowing <username> - Get a list of followees who is not following back the given username.

/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

Watch This Video Tutorial For Better Understanding.

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.

instagram-bot's People

Contributors

rainrisa avatar sayanthd avatar subinps 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  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  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

instagram-bot's Issues

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)

Request for posts download

Hi

You have provided an wonderful bot for personal use and this is very useful.

I am just want to check or requesting is there any possible of downloading only certain number of posts or top n number of posts like how we do use /feed n(number of latest updates).

Could you please add this if there is a possibility .

like

/posts samantha 10 .

I know this is a requirement and not an issue but not sure how to add an request

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.

Can I add another sudo user?

Hey, I just deployed this bot and it's working great. I just wanted to ask that, is there any way that other people can use this bot?
For example, my friends wanted to use my deployed bot. So can I add more sudo user? Thank you.

Can't deploy to Heroku

IT'S WHAT HEROKU SAYS :
Item could not be created:
We couldn't deploy your app because the source code violates the Salesforce Acceptable Use and External-Facing Services Policy.
if you can show us another way like deploying on replit or railway it would be great
THANKS ๐Ÿ’—

help me.

hi.
i create bot and it works at first use to download all pix of an account and after it my instagram account disabled!
any fix?

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...

Deploy Blocked

Heroku is blocked to create a bot in thair site. Now we can't deploy bot om heroku

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

Login Checkpoint

I tried more than 10 times and i kept getting the error again and again. any ways to fix?

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 - []

`

Error...

Update bot please last update 2 years before

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.