[Tutorial] Setting up a FREE Instagram bot: instabot.py

I really needed this because all people dont have money to spend. Thank you sir.
 
Got this error, While trying to run the script.

Code:
Traceback (most recent call last):
  File "C:\Users\Ahmed\Desktop\instabot.py-master\opensourcebotsfuckyeah.py", line 12, in <module>
    from instabot import InstaBot
  File "C:\Users\Ahmed\Desktop\instabot.py-master\src\instabot.py", line 16, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'
 
Got this error, While trying to run the script.
Code:
Traceback (most recent call last):[/B][/B]
[B][B]  File "C:\Users\Ahmed\Desktop\instabot.py-master\opensourcebotsfuckyeah.py", line 12, in <module>
    from instabot import InstaBot
  File "C:\Users\Ahmed\Desktop\instabot.py-master\src\instabot.py", line 16, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'

OSX/Linux
Use $ sudo pip install requests if you have pip installed

On OSX you can also use sudo easy_install -U requests if you have easy_install installed.

Windows
Use > Path\easy_install.exe requests if you have a windows machine, where easy_install can be found in your Python*\Scripts folder, if it was installed. (Note Path\easy_install.exe is an example, mine is C:\Python32\Scripts\easy_install.exe)

If you don't have easy install and are running on a windows machine, you can get it here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#distribute
 
Last edited:
Hey FOAM, which one is better in your opinion? AWS or PythonAnywhere?

Is there anyway to setup a schedule for the bot on AWS? Or somekind of script I could add or modify for that?
 
Hey FOAM, which one is better in your opinion? AWS or PythonAnywhere?

Is there anyway to setup a schedule for the bot on AWS? Or somekind of script I could add or modify for that?
I'm not really going to try & compare them because I haven't setup AWS but I'm familiar with the process, I can tell you that PythonAnywhere is a way faster setup & 100x easier to manage with schedule already built in. Not sure if AWS is capable without additional coding.
Where can I get some good latin american proxys?
https://www.blackhatworld.com/forums/proxies-for-sale.112/ might be a good place to check.
 
Craig, actually the example script only does the work follows_user_followers, take a look at bot_follow.py, line 38.
follower_ids = self.get_user_followers(user_id)
This line get the followers of a user and dumps it into an array. Unfortunately, I am out of my depths here.
Where is bot_follow.py,I can't find it.
 
Last edited:
I'm not really going to try & compare them because I haven't setup AWS but I'm familiar with the process, I can tell you that PythonAnywhere is a way faster setup & 100x easier to manage with schedule already built in. Not sure if AWS is capable without additional coding.

Hey thanks, I already have the script running like charm on PythonEverywhere, I'm very lost in the schedule part, how can I make it work only from 00 to 10 am? Like I don't understand the schedule interface
 
Hey thanks, I already have the script running like charm on PythonEverywhere, I'm very lost in the schedule part, how can I make it work only from 00 to 10 am? Like I don't understand the schedule interface

lol seems like only paying users can schedule hourly, that was the problem :(
 
Yes, you can change the amount of daily follows, and the amount of hours per day in which it is active. The bot adjusts it's speed based on these two settings.

Followers yes, likers I'm not sure.

"get media id by tag"
This is normal, it just says the tag from which it will next like images and follow users.

"Except on get_media!"
Are you using blocked tags? I get this for NSFW tags that are censored by Instagram.


Have you properly installed Python?
You can check that by opening cmd.exe and typing in python. You should see your python version number and a bunch of other info pop up.
How do i follow user's followers with it? i just see follow by hashtag feature
 
This isn't my work i just found modified versions of the code on github. look here hxxps://github.com/instagrambot/instabot (sorry can't post active links)
Please help me ! I downloaded this bot because i need follow user's follower feature but i don't no how to run . Is that setting follow,id,pass in bot fodel and run it,right?
 
hope someone can help me . i`m using instabot.py on PythonAnywhere ,paid account , i`m runing 4 instagram accounts without proxy and is running fine .when i try to add more instagram acc and set up a proxy inside the bot i`m getting this error :
Traceback (most recent call last): File "/home/newdjpower/instabot.py-master4/example4.py", line 43, in <module> unfollow_whitelist=['example_user_1', 'example_user_2']) File "/home/newdjpower/instabot.py-master4/src/instabot.py", line 203, in __init__ self.login() File "/home/newdjpower/instabot.py-master4/src/instabot.py", line 258, in login r = self.s.get(self.url) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 487, in get return self.request('GET', url, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 475, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 585, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 465, in send raise ProxyError(e, request=request)requests.exceptions.ProxyError: HTTPSConnectionPool(host='www.instagram.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 403 Forbidden',)))
 
Got this error, While trying to run the script.

Code:
Traceback (most recent call last):
  File "C:\Users\Ahmed\Desktop\instabot.py-master\opensourcebotsfuckyeah.py", line 12, in <module>
    from instabot import InstaBot
  File "C:\Users\Ahmed\Desktop\instabot.py-master\src\instabot.py", line 16, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'

OSX/Linux
Use $ sudo pip install requests if you have pip installed

On OSX you can also use sudo easy_install -U requests if you have easy_install installed.

Windows
Use > Path\easy_install.exe requests if you have a windows machine, where easy_install can be found in your Python*\Scripts folder, if it was installed. (Note Path\easy_install.exe is an example, mine is C:\Python32\Scripts\easy_install.exe)

If you don't have easy install and are running on a windows machine, you can get it here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#distribute

I'm getting this same error but on PythonAnywhere, is there a solution for that?

Thanks!
 
Peace FOAM how do I make it so it doesn't follow the same people over and over? also to know when to unfollow people.
 
So this Bot was totally unfollowing people i've been following for years, how do i fix that. not cool
 
So this Bot was totally unfollowing people i've been following for years, how do i fix that. not cool
I didn't make the bot & im not sure which bot you're using or which setting. I don't use the one from the OP's original post. I use the one found later posted in this thread.
 
It is because you put "pip3 install requests" directly into the command line which is incorrect. Simply remove the "" and just type in this: pip3 install requests
without the quotes you have in there now. And then push enter and it should install the tools correctly. :)
 
i run this script on heroku,
dyno(app running the script) automatic restart every 24 hours.make login data eror bcause shared server using dynamic ip addres, changing evry time
solving that problem using add-on named PROXIMO. this add-on crate private proxy and make static ip . you need add vcc to use add-on.
 
hope someone can help me . i`m using instabot.py on PythonAnywhere ,paid account , i`m runing 4 instagram accounts without proxy and is running fine .when i try to add more instagram acc and set up a proxy inside the bot i`m getting this error :
Traceback (most recent call last): File "/home/newdjpower/instabot.py-master4/example4.py", line 43, in <module> unfollow_whitelist=['example_user_1', 'example_user_2']) File "/home/newdjpower/instabot.py-master4/src/instabot.py", line 203, in __init__ self.login() File "/home/newdjpower/instabot.py-master4/src/instabot.py", line 258, in login r = self.s.get(self.url) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 487, in get return self.request('GET', url, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 475, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 585, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 465, in send raise ProxyError(e, request=request)requests.exceptions.ProxyError: HTTPSConnectionPool(host='', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 403 Forbidden',)))
maybe your proxy not work.
 
Back
Top