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
- 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
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.
Place myigbot.py and utils.py in the same folder where your project is. (recommended)
or,
Install MyIGBot from PyPi (out of date)
$ pip install myigbot
Here is how to use MyIGBot (you can also check usage.py)
from myigbot import MyIGBot
bot = MyIGBot('USERNAME', 'PASSWORD')
response = bot.like('https://www.instagram.com/p/CH5qV6-so6Y/')
print(response) # if the response code is 200 that means ok
response = bot.unlike('https://www.instagram.com/p/CH5qV6-so6Y/')
print(response) # if the response code is 200 that means ok
response = bot.like_recent('instagram')
print(response) # if the response code is 200 that means ok
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
response = bot.comment_recent('instagram', comment_text='Nice Post!')
print(response) # if the response code is 200 that means ok
response = bot.follow('instagram')
print(response) # if the response code is 200 that means ok
response = bot.unfollow('instagram')
print(response) # if the response code is 200 that means ok
response = bot.story_view('b31ngdev')
print(response) # if the response code is 200 that means ok
response = bot.upload_post('image.png', caption='Image 1')
print(response) # if the response code is 200 that means ok
response = bot.upload_story('image2.png')
print(response) # if the response code is 200 that means ok
response = bot.hashtag_posts('programmershumor', limit=50)
print(response) # by default the limit is setted to 20, this is a optional parameter
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
response = bot.user_posts_count('instagram')
print(response)
response = bot.user_followers_count('instagram')
print(response)
response = bot.user_follow_count('instagram')
print(response)
response = bot.like_count('https://www.instagram.com/p/CH5qV6-so6Y/')
print(response)
response = bot.comment_count('https://www.instagram.com/p/CH5qV6-so6Y/')
print(response)
response = bot.user_posts('instagram', limit=50)
print(response) # by default the limit is setted to 50, this is a optional parameter
response = bot.user_followers('instagram', limit=50)
print(response) # by default the limit is setted to 50, this is a optional parameter
response = bot.user_follows('instagram', limit=50)
print(response) # by default the limit is setted to 50, this is a optional parameter
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
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
response = bot.feed_posts()
print(response)
response = bot.post_owner('https://www.instagram.com/p/CH5qV6-so6Y/')
print(response)
response = bot.post_caption('https://www.instagram.com/p/CH5qV6-so6Y/')
print(response)
response = bot.post_location('https://www.instagram.com/p/CH5qV6-so6Y/')
print(response)
response = bot.post_hashtags('https://www.instagram.com/p/CH5qV6-so6Y/')
print(response)
response = bot.post_tagged_user('https://www.instagram.com/p/B2fZRgBA2wj/')
print(response)
response = bot.user_dp('instagram')
print(response)
response = bot.user_bio('instagram')
print(response)
response = bot.private_user('instagram')
print(response)
response = bot.verified_user('instagram')
print(response)
response = bot.user_external_url('instagram')
print(response)
response = bot.follows_me('instagram')
print(response)
response = bot.followed_by_me('instagram')
print(response)
response = bot.video_views_count('https://www.instagram.com/p/B2XPNNvgApx/')
print(response)
response = bot.post_type('https://www.instagram.com/p/CH5qV6-so6Y/')
print(response)
response = bot.post_time('https://www.instagram.com/p/CH5qV6-so6Y/')
print(response)
Here is how to add proxy
from myigbot import MyIGBot
proxies = {
'http': 'user:pass@host:port',
'https': 'user:pass@host:port'
}
bot = MyIGBot('USERNAME', 'PASSWORD', proxy=proxies)
from myigbot import MyIGBot
proxies = {
'http': 'host:port',
'https': 'host:port',
}
bot = MyIGBot('USERNAME', 'PASSWORD', proxy=proxies)
Free Software, Hell Yeah!