tuxity / insta-unfollower

An Instagram script to unfollow accounts who doesn't follow-you-back
MIT License
384 stars 87 forks source link

Error in authentication #51

Closed priyanshul-govil closed 3 years ago

priyanshul-govil commented 3 years ago

Attaching error details below:

Traceback (most recent call last):
  File ".\insta-unfollower.py", line 301, in <module>
    main()
  File ".\insta-unfollower.py", line 225, in main
    is_logged = login()
  File ".\insta-unfollower.py", line 83, in login
    if response_data['authenticated']:
KeyError: 'authenticated'
rotechcr commented 3 years ago

Login into Instagram Web version, inspect and go to the Network tab, choose one of the calls, for example /get_encrypted_credentials and make the Request Headers inside insta-unfollower.py match with the ones used in the selected call. That's it.

priyanshul-govil commented 3 years ago

Alright, got it!