Code Monkey home page Code Monkey logo

instagram-followers-bot's Introduction

instagram-followers-bot

Functionality:

  • Info: Show report

  • Follow users: from tag, from location, from a list or follow back who you do not follow back

  • Unfollow users: who do not follow you back or all of them


Usage:

Show report (who follows, unfollows, follows you back):

python main.py -u USERNAME -p PASSWORD -o info

Follow users using the tag you introduce:

python main.py -u USERNAME -p PASSWORD -o follow-tag -t TAG

Follow users from a location:

python main.py -u USERNAME -p PASSWORD -o follow-location -t LOCATION_ID

Follow back all the users who you don't follow back:

python main.py -u USERNAME -p PASSWORD -o super-followback

Follow users from a list:

python main.py -u USERNAME -p PASSWORD -o follow-list -t USER_LIST

Unfollow all the users who don't follow you back:

python main.py -u USERNAME -p PASSWORD -o super-unfollow

NOTE: Fill "whitelist.txt" file with the accounts you will never want to unfollow

Unfollow all the users:

python main.py -u USERNAME -p PASSWORD -o unfollow-all

NOTE: Fill "whitelist.txt" file with the accounts you will never want to unfollow


Examples:

python main.py -u USERNAME -p PASSWORD -o follow-tag -t cat : Follow users using the tag 'cat'

python main.py -u USERNAME -p PASSWORD -o follow-location -t 127963847 : Follow users from Spain

python main.py -u USERNAME -p PASSWORD -o super-followback: Now you are following users you didn't follow but they followed you

python main.py -u USERNAME -p PASSWORD -o follow-list -t userlist.txt : Follow users in each line of userlist.txt

python main.py -u USERNAME -p PASSWORD -o super-unfollow: Now you are not following users who don't follow you


Acknowledgment

The really good repo is the levpasha's one (https://github.com/LevPasha/Instagram-API-python)


Note

Tested both in Python2.x (2.7.15rc1) and Python 3.x (3.6.7)

instagram-followers-bot's People

Contributors

paulohenriquesn avatar ricardojoserf 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

instagram-followers-bot's Issues

Follow Requests

Hi,

The script is working great so far! Thank you.

Is it possible to implement removing follow requests?

bot stops working after 83 -84 follows

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.

Specifications

  • Operative system: win 10, 64bit

  • Version: python 3.9.7 64bit

Follow from location AND tag

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

first time trying this?

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

Error in unfollowing (in following by locations mode)

Expected vs Actual Behavior

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.

Steps to Reproduce the Problem

python3 main.py -u username -p password -o follow-location -t 7497159

Initial error

I have downloaded the repository, installed the dependencies and when I launch a call to test, I get this error.

Captura de pantalla 2022-06-21 a las 11 29 24

Error - Super unfollow

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)

[appreciation]

@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 👌🏽

Error

Expected vs Actual Behavior

Super unfollow doesn't work "there was an error..."

Specifications

  • Operative system: Kali Linux

  • Version (e.g. Python version): 3.8.6

Steps to Reproduce the Problem

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 ?

error in super-unfollow

  • Expected vs Actual Behavior

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

  • Specifications

tested both in python3.8 and python2.7, trowing error when trying to unfollow. info is working fine.

  • Operative system:

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

Multiple query request

Describe the solution you'd like

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

Any other context or screenshots about the feature request here

** python main.py -u username -p password -o follow-location|follow-tag -t 216978098 -t funny**

Error :There was an error unfollowing

Expected vs Actual Behavior

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

Specifications

  • Operative system: ubuntu

  • Version (e.g. Python version): 3.9.4

Steps to Reproduce the Problem

ERROR import: unable to open X server `' @ error/import.c/ImportImageCommand/364.

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()'

Instagram API changed?

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'```

Error username_id

I have this error:

AttributeError: 'InstagramAPI' object has no attribute 'username_id'

Any help?

d1.kwame

Expected vs Actual Behavior

Specifications

  • Operative system:

  • Version (e.g. Python version):

Steps to Reproduce the Problem

Question

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 ?

AttributeError

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?

It shows the error

File "main.py", line 86
print "Following " + username
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Following " + username)?

Bug in unfollow

Hi
when im using unfollow command i have problem
my error is :
There was an error unfollowing christophe_penloup_icd, please try again later.

Not able to Login

Expected vs Actual Behavior

Specifications

  • Operative system: Mac OS

  • Version (e.g. Python version): 2.7

Steps to Reproduce the Problem

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'

AttributeError: 'InstagramAPI' object has no attribute 'username_id'

Expected vs Actual Behavior

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

Specifications

  • Operative system:
    Windows
  • Version (e.g. Python version):

Python 3.8.10

Steps to Reproduce the Problem

Bug json

Expected vs Actual Behavior

Specifications

  • Operative system: Kali Linux

  • Version (e.g. Python version): 3.8.6

Steps to Reproduce the Problem

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)

Follow Location

Hello Ricardo,

I wanted to ask you a question. I'm using the command to follow from a location and it never interacts with more than 8 or 10 users.

Is there any limitation you have set in the code?

For id 213870197 which is Cordoba, this is the list of users I have interacted with.

Captura de pantalla 2020-06-05 a las 15 12 46

Bug in unfollows.

Expected vs Actual Behavior

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?

Specifications

  • Operative system:
    windows 10
  • Version (e.g. Python version):
    python 3.9.7

Steps to Reproduce the Problem

run the "python main.py -u USERNAME -p PASSWORD -o super-unfollow" command

Follow from list error

Expected vs Actual Behavior

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)
Screenshot 2021-03-26 at 7 46 05 am

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.

Specifications

  • Operative system:

  • Version (e.g. Python version):
    3

Steps to Reproduce the Problem

-u USERNAME -p PASSWORD -o follow-list -t list.txt

Error

Expected vs Actual Behavior

Python3, receiving error: Eote: There was an error unfollowing XXX, please try again later.

Happens to all unfollowers, not unfollowed one yet.

Specifications

  • Operative system:
    ubuntu 18.04
  • Version (e.g. Python version):
    python3 3.8.5

Steps to Reproduce the Problem

just run the script with super unfollow

Super Unfollow/ Unfollow all Error

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.

AttributeError: 'InstagramAPI' object has no attribute 'username_id'

Expected vs Actual Behavior

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'

Specifications

  • Operative system:
    Windows 10

  • Version (e.g. Python version):
    Python 3.7.6

Steps to Reproduce the Problem

Thanks for your help!

Error after runing the program

Expected vs Actual Behavior

The program worked and unfollowed like 10 but now it gives me an error.

Specifications

  • Operative system: Raspbian

  • Version (e.g. Python version): 2.7.16

Steps to Reproduce the Problem

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)

Does note work here

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

Login not successful

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?

Sorry, but

Expected vs Actual Behavior

Sorry, i'm a new gay in python, how can i run this command? In terminal or some one else?

Specifications

  • Operative system:

  • Version (e.g. Python version):

Steps to Reproduce the Problem

Error getting informations

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 ?

Error INFO

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'

The information about my followers it's not accurate

Expected vs Actual Behavior

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

Specifications

  • Operative system: Windows

  • Version (e.g. Python version): 3.9.2

Steps to Reproduce the Problem

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.