tuxity / insta-unfollower

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

KeyError: 'authenticated' #50

Closed Canorus closed 3 years ago

Canorus commented 3 years ago

I know this issue was closed on #13 and #41 but I got something new so I'll just open a new one.

Same error message goes

Traceback (most recent call last):
  File "/Users/canor/scripts/insta-unfollower/insta-unfollower.py", line 301, in <module>
    main()
  File "/Users/canor/scripts/insta-unfollower/insta-unfollower.py", line 225, in main
    is_logged = login()
  File "/Users/canor/scripts/insta-unfollower/insta-unfollower.py", line 83, in login
    if response_data['authenticated']:
KeyError: 'authenticated'

so I printed response_data and it shows

{'message': 'checkpoint_required', 'checkpoint_url': '/challenge/224135293/7TSGU0RpjF/', 'lock': False, 'flow_render_type': 0, 'status': 'fail'}

what would that mean? any advice would be helpful. thanks.

Jookster1 commented 3 years ago

I got the exact same error message

Canorus commented 3 years ago

just looked up the internet and learned that Instagram takes this attempt as suspicious login and asked me to make sure that it was me on next successful login. However even if I confirmed that it was me Instagram will still block me from signing in. I have no idea how to convince that it's me doing this. probably I'd have to go selenium way.