Skip to main content

MyIGBot is a Private API for Instagram to like, follow, comment, view & intaract with stories, upload post & stories, get all information about a user/posts and get posts based on locations/hashtags. It also supports proxy.

Project description

MyIGBot  Build Status

MyIGBot is a Instagram Private API to like, follow, comment, view & intaract with stories, upload post & stories, get all information about a user/posts and get posts based on locations/hashtags.

  • Easy to use
  • More Powerful Now
  • 2FA Login Support

New Features!

  • Get information of a user/post.
  • Get posts based on hashtag/location.
  • It also supports proxy now.
  • Added 35+ features on this update.

You can also:

  • Send Story Views
  • Like, Unlike, Comment in a Post
  • Follow, Unfollow User
  • Upload Post and Stories
  • Intaract with Stories
  • Cookie Storing Feature

Tech

MyIGBot uses a number of open source projects to work properly:

  • Python - Python is an interpreted, high-level and general-purpose programming language
  • Requests - to make HTTP requests simpler
  • BeautifulSoup - is a Python package for parsing HTML and XML documents.

And of course MyIGBot itself is open source with a public repository on GitHub.

Installation

Install MyIGBot from PyPi

$ pip install myigbot

Usage

Here is how to use MyIGBot (you can also check usage.py)

Login Process (if you're account has 2 Factor Auth. The Bot Will Ask You The Code.)
from myigbot import MyIGBot

bot = MyIGBot('USERNAME', 'PASSWORD')
Like post
response = bot.like('https://www.instagram.com/p/CH5qV6-so6Y/')
print(response)  # if the response code is 200 that means ok
Unlike post
response = bot.unlike('https://www.instagram.com/p/CH5qV6-so6Y/')
print(response)  # if the response code is 200 that means ok
Like Recent post
response = bot.like_recent('instagram')
print(response)  # if the response code is 200 that means ok
Comment on post
response = bot.comment('https://www.instagram.com/p/CH5qV6-so6Y/', comment_text='Nice Post!')
print(response)  # if the response code is 200 that means ok
Comment on recent post
response = bot.comment_recent('instagram', comment_text='Nice Post!')
print(response)  # if the response code is 200 that means ok
Follow user
response = bot.follow('instagram')
print(response)  # if the response code is 200 that means ok
Unfollow user
response = bot.unfollow('instagram')
print(response)  # if the response code is 200 that means ok
Send story view
response = bot.story_view('b31ngdev')
print(response)  # if the response code is 200 that means ok
Upload post
response = bot.upload_post('image.png', caption='Image 1')
print(response)  # if the response code is 200 that means ok
Upload Story
response = bot.upload_story('image2.png')
print(response)  # if the response code is 200 that means ok
Find posts with hashtags
response = bot.hashtag_posts('programmershumor', limit=50)
print(response)  # by default the limit is setted to 20, this is a optional parameter
Find posts with location
response = bot.location_posts('https://www.instagram.com/explore/locations/6889842/paris-france/', limit=20)
print(response)  # by default the limit is setted to 20, this is a optional parameter
User post count
response = bot.user_posts_count('instagram')
print(response)
User follower count
response = bot.user_followers_count('instagram')
print(response)
User follow count
response = bot.user_follow_count('instagram')
print(response)
Post like count
response = bot.like_count('https://www.instagram.com/p/CH5qV6-so6Y/')
print(response)
Post comment count
response = bot.comment_count('https://www.instagram.com/p/CH5qV6-so6Y/')
print(response)
Get every post's link of a user
response = bot.user_posts('instagram', limit=50)
print(response)  # by default the limit is setted to 50, this is a optional parameter
List of username who followed the user
response = bot.user_followers('instagram', limit=50)
print(response)  # by default the limit is setted to 50, this is a optional parameter
List of username whom the user follows
response = bot.user_follows('instagram', limit=50)
print(response)  # by default the limit is setted to 50, this is a optional parameter
List of username who liked a post
response = bot.post_likers('https://www.instagram.com/p/CH5qV6-so6Y/', limit=50)
print(response)  # by default the limit is setted to 50, this is a optional parameter
List of username who commented a post
response = bot.post_commenters('https://www.instagram.com/p/CH5qV6-so6Y/', limit=50)
print(response)  # by default the limit is setted to 50, this is a optional parameter
Feed posts of logged in user
response = bot.feed_posts()
print(response)
Username of the post owner
response = bot.post_owner('https://www.instagram.com/p/CH5qV6-so6Y/')
print(response)
Get caption of a post
response = bot.post_caption('https://www.instagram.com/p/CH5qV6-so6Y/')
print(response)
Get location of a post
response = bot.post_location('https://www.instagram.com/p/CH5qV6-so6Y/')
print(response)
Get hashtags used in the post
response = bot.post_hashtags('https://www.instagram.com/p/CH5qV6-so6Y/')
print(response)
Get usernames who are tagged in a post
response = bot.post_tagged_user('https://www.instagram.com/p/B2fZRgBA2wj/')
print(response)
Get HD quality Profile Picture download link
response = bot.user_dp('instagram')
print(response)
Get bio of a user
response = bot.user_bio('instagram')
print(response)
Find the account is private or not
response = bot.private_user('instagram')
print(response)
Find the account is verified or not
response = bot.verified_user('instagram')
print(response)
Get external url of a username
response = bot.user_external_url('instagram')
print(response)
Find the user follows you or not
response = bot.follows_me('instagram')
print(response)
Find you follow the user or not
response = bot.followed_by_me('instagram')
print(response)
Get video views count
response = bot.video_views_count('https://www.instagram.com/p/B2XPNNvgApx/')
print(response)
Get post type (video or picture)
response = bot.post_type('https://www.instagram.com/p/CH5qV6-so6Y/')
print(response)
Get exact time when the post was posted
response = bot.post_time('https://www.instagram.com/p/CH5qV6-so6Y/')
print(response)

Proxy

Here is how to add proxy

Method For Authenticated Proxies

from myigbot import MyIGBot

proxies = {
    'http': 'user:pass@host:port',
    'https': 'user:pass@host:port'
}
bot = MyIGBot('USERNAME', 'PASSWORD', proxy=proxies)

Method For Non-Authenticated Proxies

from myigbot import MyIGBot

proxies = {
  'http': 'host:port',
  'https': 'host:port',
}
bot = MyIGBot('USERNAME', 'PASSWORD', proxy=proxies)

Buy Me a Coffee

Buy Me A Coffee

License

OpenSource        MIT

Free Software, Hell Yeah!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

myigbot-0.2.5.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

myigbot-0.2.5-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file myigbot-0.2.5.tar.gz.

File metadata

  • Download URL: myigbot-0.2.5.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for myigbot-0.2.5.tar.gz
Algorithm Hash digest
SHA256 7f9aa98c1d6feed50ceefa0f8e1c9320f4cb2cf42e3b1ae8a4f5faf5884fbc7b
MD5 7987ff916b46821bd8a9d93418897c4f
BLAKE2b-256 fd5996ea45a5a2bf02d9d56f38dba170e2f2dab0da26f6e8346c53917166e983

See more details on using hashes here.

File details

Details for the file myigbot-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: myigbot-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for myigbot-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9d875eff83f1bf2fcb41434919dc8790fcfc06698aaf6924e27b5650412fbe97
MD5 7f9b69864218025e1ea93427f65cd4e5
BLAKE2b-256 19b66d943ebfbcb43cf12cfb94e6fcf9e7a1473ee815a083fd64806624f7c5c1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page