ricardojoserf / instagram-followers-bot Goto Github PK
View Code? Open in Web Editor NEWA bot for Instagram. You can follow users using a tag or in a specific location, unfollow those who dont follow-you-back, and follow-back those who follow you
A bot for Instagram. You can follow users using a tag or in a specific location, unfollow those who dont follow-you-back, and follow-back those who follow you
First of all thanks a lot for the great job done here. Is there any way to follow someone with location and tag.
example : following guitarplayers from norway
thank you
The project is a bit older, would be sad if you no longer support it
Ubuntu 18.04 LTS, command line without GUI.
./main.py -u username -p pass -o unfollow-all
import: unable to open X server `' @ error/import.c/ImportImageCommand/364.
from: too many arguments
./main.py: line 4: followers: command not found
./main.py: line 5: followings: command not found
./main.py: line 6: syntax error near unexpected token `('
./main.py: line 6: `args = aux_funcs.get_args()'
Hi!
I tried running super unfollow, but the following error occurred:
Login not successful Traceback (most recent call last): File "C:\...\main.py", line 187, in <module> main() File "C:\...\main.py", line 143, in main for i in api.getTotalSelfFollowers(): File "C:\...\InstagramAPI.py", line 162, in getTotalSelfFollowers return self.getTotalFollowers(self.username_id) AttributeError: 'InstagramAPI' object has no attribute 'username_id'
I heard that LevPasha's Instagram-API-python and other API's were deprecated last year. Is that the cause of the error?
The program worked and unfollowed like 10 but now it gives me an error.
Operative system: Raspbian
Version (e.g. Python version): 2.7.16
When I run the program , after a few seconds I get this error message:
Traceback (most recent call last):
File "main.py", line 158, in
main()
File "main.py", line 144, in main
unfollowall()
File "main.py", line 105, in unfollowall
user_id = aux_funcs.get_id(i)
File "***/instagram-followers-bot-master/aux_funcs.py", line 19, in get_id // I censored the actual location with ***
respJSON = response.json()
File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python2.7/dist-packages/simplejson/init.py", line 518, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
When I'm running the command above to list my followers info, the list of users who does not follow me back it's not quite right. It's showing even my wife doesn't following me haha
python main.py -u USERNAME -p PASSWORD -o info
Operative system: Windows
Version (e.g. Python version): 3.9.2
I have this error:
AttributeError: 'InstagramAPI' object has no attribute 'username_id'
Any help?
what is the experience with instagram, with the simple follower query. will the account be blocked if I use the api many times ,
only to se my following or followed accounts ?
'InstagramAPI' object has no attribute 'username_id'
Traceback (most recent call last):
File "main.py", line 1, in
import aux_funcs, sys, json, time, random
File "/data/data/com.termux/files/home/instagram-followers-bot/aux_funcs.py", line 1, in
import sys, json, requests, os
ImportError: No module named requests
Expected? Idk because I haven't actually seen what it does.
Actual behavior:
python3.8:
Traceback (most recent call last):
File "main.py", line 157, in
main()
File "main.py", line 140, in main
super_unfollow()
File "main.py", line 94, in super_unfollow
user_id = aux_funcs.get_id(i)
File "/home/bob/instagram-followers-bot/aux_funcs.py", line 19, in get_id
respJSON = response.json()
File "/home/bob/.local/lib/python3.8/site-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3/dist-packages/simplejson/init.py", line 518, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
python 2.7:
Traceback (most recent call last):
File "main.py", line 157, in
main()
File "main.py", line 140, in main
super_unfollow()
File "main.py", line 94, in super_unfollow
user_id = aux_funcs.get_id(i)
File "/home/bob/instagram-followers-bot/aux_funcs.py", line 19, in get_id
respJSON = response.json()
File "/home/bob/.local/lib/python2.7/site-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
tested both in python3.8 and python2.7, trowing error when trying to unfollow. info is working fine.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
Version (e.g. Python version):
python 2.7 and 3.8
Steps to Reproduce the Problem
python3.8: python3 main.py -u USERNAME -p PASSWORD -o super-unfollow
python2.7: python2.7 main.py -u USERNAME -p PASSWORD -o super-unfollow
Traceback (most recent call last):
File "main.py", line 1, in
import aux_funcs, sys, json, time, random
File "/Users/justin/Desktop/instagram-followers-bot/aux_funcs.py", line 1, in
import sys, json, requests, os
Operative system: Mac OS
Version (e.g. Python version): 2.7
Ran the main.py script
I logged out of my account on Instagram and used the same credentials {Facebook Login}.
Login not successful
Traceback (most recent call last):
File "main.py", line 157, in
main()
File "main.py", line 113, in main
for i in api.getTotalSelfFollowers():
File "/Users/terrilthomas/Documents/Python Projects/instagram-followers-bot/LevPasha/InstagramAPI.py", line 162, in getTotalSelfFollowers
return self.getTotalFollowers(self.username_id)
AttributeError: InstagramAPI instance has no attribute 'username_id'
When running python main.py -u USERNAME -p PASSWORD -o super-unfollow
, I get error:
Traceback (most recent call last):
File "main.py", line 157, in <module>
main()
File "main.py", line 113, in main
for i in api.getTotalSelfFollowers():
File "/home/dinhjeffrey/Desktop/instagram-followers-bot/LevPasha/InstagramAPI.py", line 162, in getTotalSelfFollowers
return self.getTotalFollowers(self.username_id)
AttributeError: InstagramAPI instance has no attribute 'username_id'```
I've tried to run, but I got this error:
Traceback (most recent call last):
File "main.py", line 157, in
main()
File "main.py", line 140, in main
super_unfollow()
File "main.py", line 94, in super_unfollow
user_id = aux_funcs.get_id(i)
File "/Users/josepfm/Desktop/instagram-followers-bot/aux_funcs.py", line 19, in get_id
respJSON = response.json()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/requests/models.py", line 898, in json
return complexjson.loads(self.text, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Instagram bans too much requests. Does this program do anything about that? What are the chances of me getting banned?
It unfollow everyone who does not follow me, but it cant unfollow anyone
python main.py -u myuser -p mypassword -o super-unfollow
I have a list.txt file that I have scraped from @Instagram's followers. When I try to run the command to follow the list, I get the error:
Note: There was an error unfollowing btwmuskan, please try again later. Following btwmuskan (with id 0)
Since getting this error, I have tried running the command of following users by tag and that works, so I'm confident I haven't reached my follow limit or had my IP blocked.
Operative system:
Version (e.g. Python version):
3
-u USERNAME -p PASSWORD -o follow-list -t list.txt
I think API of the Instagram has been changed.
All commands ;
Login not successful Traceback (most recent call last): File "main.py", line 157, in <module> main() File "main.py", line 113, in main for i in api.getTotalSelfFollowers(): File "/home/alwiez/h/Social/instagram-followers-bot/LevPasha/InstagramAPI.py", line 162, in getTotalSelfFollowers return self.getTotalFollowers(self.username_id) AttributeError: InstagramAPI instance has no attribute 'username_id'
What should I do now?
The script works well Thank you for sharing it.
But is it possible to use multiple queries together?
Like using TAG and LOCATION_ID together
** python main.py -u username -p password -o follow-location|follow-tag -t 216978098 -t funny**
Operative system:
Version (e.g. Python version):
Hello, first of all, thanks for your work! I wasn't able to run this command:
python main.py -u USERNAME -p PASSWORD -o super-unfollow
Log:
Login not successful
Traceback (most recent call last):
File "main.py", line 187, in <module>
main()
File "main.py", line 143, in main
for i in api.getTotalSelfFollowers():
File "C:\Users\felip\Downloads\nao-deu-instagram-followers-bot-master\LevPasha\InstagramAPI.py", line 162, in getTotalSelfFollowers
return self.getTotalFollowers(self.username_id)
AttributeError: 'InstagramAPI' object has no attribute 'username_id'
Operative system:
Windows 10
Version (e.g. Python version):
Python 3.7.6
Thanks for your help!
@ricardojoserf Just wanted to say thanks for this awesome script, was exactly what i was looking for, tried 2 other scripts, one python and the other shell and neither worked, this has saved me soooo much time, cant imagine doing this manually, many thanks goes to @paulohenriquesn to, i was looking for exactly this option, thanks alot for including it 👌🏽
if possible Follow users from list.txt ?
There is a problem with the super unfollow command, when I try to run it I get an error "Note: There was an error unfollowing andru.terrance, please try again later."
I have noticed that other users also had this problem but couldn't find a fix, I tried it with an account that I haven't used in months but I still get the error, any fixes?
run the "python main.py -u USERNAME -p PASSWORD -o super-unfollow" command
Hello, first of all, thank you very much for creating this tool, it really helps!
So I want to run the bot for a whole day with big delays between every follow so I won't get banned, but every time I run it, the bot stops after 83 or 84 follows and exits the script.
I tried setting the maximum amount to 600 but it still exits, I even canceled the break function but it still exits.
Operative system: win 10, 64bit
Version: python 3.9.7 64bit
Python3, receiving error: Eote: There was an error unfollowing XXX, please try again later.
Happens to all unfollowers, not unfollowed one yet.
just run the script with super unfollow
Operative system: Kali Linux
Version (e.g. Python version): 3.8.6
python main.py -u USERNAME -p PASSWORD -o super-followback:
After 15 unfollow I get this error
Traceback (most recent call last): File "main.py", line 158, in <module> main() File "main.py", line 141, in main super_unfollow() File "main.py", line 95, in super_unfollow user_id = aux_funcs.get_id(i) File "/home/gab/Desktop/instagram-followers-bot/aux_funcs.py", line 19, in get_id respJSON = response.json() File "/home/gab/.local/lib/python3.8/site-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib/python3/dist-packages/simplejson/__init__.py", line 525, in loads return _default_decoder.decode(s) File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Hi, Ricardo,
I've seen that you're from Madrid, but if it's of any use to anyone else, I'll leave it in English.
I'm having trouble trying the first command to get the info.
I've seen that it's a recurrent report that you already fixed but I wanted to know if there was something changed in the API that could cause me the error.
I attach the error reported by the terminal (Mac):
Login not successful
Traceback (most recent call last):
File "main.py", line 157, in
main()
File "main.py", line 113, in main
for i in api.getTotalSelfFollowers():
File "/Users/josepfm/Desktop/instagram-followers-bot-master/LevPasha/InstagramAPI.py", line 163, in getTotalSelfFollowers
return self.getTotalFollowers(self.username_id)
AttributeError: 'InstagramAPI' object has no attribute 'username_id'
File "main.py", line 86
print "Following " + username
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Following " + username)?
Hi
when im using unfollow command i have problem
my error is :
There was an error unfollowing christophe_penloup_icd, please try again later.
Super unfollow doesn't work "there was an error..."
Operative system: Kali Linux
Version (e.g. Python version): 3.8.6
When I launch the program, this time I get the Note: There was an error unfollowing nameofuser, please try again later.
each time.
I thought yesterday it was Instagram limit but when I do it manually it works. It's not the Instagram limit.
Could it be private account ?
Expected: username_id (maybe)
Actual Behavior: AttributeError: 'InstagramAPI' object has no attribute 'username_id'
Operative system: WIN 10
Version (e.g. Python version): 3.9.0
Hi!
Is there a way to follow people who follow a particular user? Is it possible to add a blacklist to tell the bot which of these users it should not follow?
Thank you very much!
I got an error after a few minutes running the script in the follow by locations mode
Note: There was an error unfollowing "username", please try again later.
python3 main.py -u username -p password -o follow-location -t 7497159
Hey,
I tried to get informations about my instagram account:
python main.py -u USERNAME -p PASSWORD -o info
And I get this error:
Traceback (most recent call last): File "main.py", line 1, in <module> import aux_funcs, sys, json, time, random File "/Users/xxx/Documents/instagram-followers-bot/aux_funcs.py", line 1, in <module> import sys, json, requests, os ImportError: No module named requests
I think the program have to be uptated with the new API/Standarts of Instragam ?
I have double checked the Username and Password, they are correct
I am trying to run the following command python main.py -u USER -p PASSWORD -o info
My password has no symbols, and two numbers
Just to be sure, do I need to use quotes "" for the USER and password? Do I need to use an "@" for the username?
I have tried all combinations and had no luck.
I keep getting the following error
Login not successful
Traceback (most recent call last):
File "main.py", line 187, in
main()
File "main.py", line 143, in main
for i in api.getTotalSelfFollowers():
File "C:\Users\12512\Desktop\GolfCarts\Insta3\LevPasha\InstagramAPI.py", line 162, in getTotalSelfFollowers
return self.getTotalFollowers(self.username_id)
AttributeError: 'InstagramAPI' object has no attribute 'username_id'
Any help would be appreciated, Thanks
Python 3.8.10
Everytime I try the Super Unfollow/ Unfollow all command I get an Error and I should try again later.
Already tried on different days and with different IPs. Manual unfollow also works. The other commands work fine.
Hey, How i can get Location ID?
follow from list :
Note: There was an error unfollowing xxxx please try again later.
Following xxxx (with id 0)
Note: There was an error unfollowing xxxx please try again later.
Following xxxx (with id 0)
but not following
Operative system: ubuntu
Version (e.g. Python version): 3.9.4
Sorry, i'm a new gay in python, how can i run this command? In terminal or some one else?
Operative system:
Version (e.g. Python version):
Hi,
The script is working great so far! Thank you.
Is it possible to implement removing follow requests?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.