Coder Social home page Coder Social logo

ccozkan / instagram-unfollowers Goto Github PK

View Code? Open in Web Editor NEW
115.0 7.0 19.0 36 KB

Who unfollowed you, who followed you, who doesn't follow you back, who liked your pics the most and who never? Don't worry I got all the answers. Also this can used for non-private users too.

License: GNU General Public License v3.0

Python 55.15% Smarty 43.66% Shell 1.19%
instagram instagram-unfollowers instagram-followers unfollowers unfollower

instagram-unfollowers's People

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

instagram-unfollowers's Issues

error

F:\py>py -2.7 main.py 528817151
~ Connecting to Instagram
Traceback (most recent call last):
File "main.py", line 19, in
if insta.login() == False:
File "F:\py\insta.py", line 45, in login
if (self.SendRequest('accounts/login/', self.generateSignature(json.dumps(data)), True)):
File "F:\py\insta.py", line 73, in generateSignature
return 'ig_sig_key_version=' + self.SIG_KEY_VERSION + '&signed_body=' + hmac.new(self.IG_SIG_KEY.encode('utf-8'), data.encode('utf-8'), hashlib.sha256).hexdigest() + '.' + urllib.pathname2url(data)
File "C:\Users\Amir.windows-build-tools\python27\lib\nturl2path.py", line 60, in pathname2url
raise IOError, error
IOError: Bad path: .........

i use python 2 and whats the problem?

ImportError: No module named requests

linux@linux-box ~/Scripts/python/instagram-unfollowers $ python main.py 429570963
Traceback (most recent call last):
  File "main.py", line 5, in <module>
    from insta import Instagram
  File "/home/linux/Scripts/python/instagram-unfollowers/insta.py", line 4, in <module>
    import requests
ImportError: No module named requests

SyntaxError: Missing parentheses in call to 'print'.

SyntaxError: Missing parentheses in call to 'print'. Did you mean print(" ~ Connecting to Instagram")?

pyton 3.6
i edit " ~ Connecting to Instagram" to (" ~ Connecting to Instagram") but another error .......
update it with latest python plz

OSError: [Errno 101] Network is unreachable

python main.py 3322513531
~ Connecting to Instagram
~ Sending request to Instagram , fetching your feeds
~ Sending request to Instagram , fetching followers
Traceback (most recent call last):
File "/home/hadoop/Desktop/instagram-unfollowers/env/lib/python3.6/site-packages/urllib3/connection.py", line 159, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw)
File "/home/hadoop/Desktop/instagram-unfollowers/env/lib/python3.6/site-packages/urllib3/util/connection.py", line 80, in create_connection
raise err
File "/home/hadoop/Desktop/instagram-unfollowers/env/lib/python3.6/site-packages/urllib3/util/connection.py", line 70, in create_connection
sock.connect(sa)
OSError: [Errno 101] Network is unreachable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/hadoop/Desktop/instagram-unfollowers/env/lib/python3.6/site-packages/urllib3/connectionpool.py", line 600, in urlopen
chunked=chunked)
File "/home/hadoop/Desktop/instagram-unfollowers/env/lib/python3.6/site-packages/urllib3/connectionpool.py", line 343, in _make_request
self._validate_conn(conn)
File "/home/hadoop/Desktop/instagram-unfollowers/env/lib/python3.6/site-packages/urllib3/connectionpool.py", line 839, in _validate_conn
conn.connect()
File "/home/hadoop/Desktop/instagram-unfollowers/env/lib/python3.6/site-packages/urllib3/connection.py", line 301, in connect
conn = self._new_conn()
File "/home/hadoop/Desktop/instagram-unfollowers/env/lib/python3.6/site-packages/urllib3/connection.py", line 168, in _new_conn
self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fb22b063eb8>: Failed to establish a new connection: [Errno 101] Network is unreachable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/hadoop/Desktop/instagram-unfollowers/env/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/home/hadoop/Desktop/instagram-unfollowers/env/lib/python3.6/site-packages/urllib3/connectionpool.py", line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File "/home/hadoop/Desktop/instagram-unfollowers/env/lib/python3.6/site-packages/urllib3/util/retry.py", line 399, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='i.instagram.com', port=443): Max retries exceeded with url: /api/v1/friendships/3322513531/followers/?max_id=400&ig_sig_key_version=4&rank_token=49039929928_bcaf0f5b-f2eb-4626-903b-dc9ed3be2345 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb22b063eb8>: Failed to establish a new connection: [Errno 101] Network is unreachable',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "main.py", line 40, in
followers = insta.getTotalFollowers(numer)
File "/home/hadoop/Desktop/instagram-unfollowers/insta.py", line 119, in getTotalFollowers
self.getUserFollowers(usernameId,next_max_id)
File "/home/hadoop/Desktop/instagram-unfollowers/insta.py", line 110, in getUserFollowers
+'&ig_sig_key_version='+ self.SIG_KEY_VERSION +'&rank_token='+ self.rank_token)
File "/home/hadoop/Desktop/instagram-unfollowers/insta.py", line 91, in SendRequest
response = self.s.get(self.API_URL + endpoint) # , verify=False
File "/home/hadoop/Desktop/instagram-unfollowers/env/lib/python3.6/site-packages/requests/sessions.py", line 546, in get
return self.request('GET', url, **kwargs)
File "/home/hadoop/Desktop/instagram-unfollowers/env/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/home/hadoop/Desktop/instagram-unfollowers/env/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/home/hadoop/Desktop/instagram-unfollowers/env/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='i.instagram.com', port=443): Max retries exceeded with url: /api/v1/friendships/3322513531/followers/?max_id=400&ig_sig_key_version=4&rank_token=49039929928_bcaf0f5b-f2eb-4626-903b-dc9ed3be2345 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb22b063eb8>: Failed to establish a new connection: [Errno 101] Network is unreachable',))
(env) [hadoop@bd instagram-unfollowers]$

Return 400 error

I dont use 2 Factory Auth, when I try to run the script it cant log in saying request return error 400 and login failed, the instagram app on my smartphone alert a suspect access, there is a way to make work? :)
Using python2.7 on Ubunto 19.10 && Private Instagram account

error

Doesn't work got the same issue that people have talked about earlier. it would help if you could just check and rectify it.

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.