tuxity / insta-unfollower

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

KeyError: 'graphql' #58

Closed Mr3Superfake closed 2 years ago

Mr3Superfake commented 3 years ago

Hi! When running python3 insta-unfollower.py i get this error

Traceback (most recent call last):
  File "C:\Users\WORKSTATION\Downloads\insta-unfollower-master\insta-unfollower.py", line 282, in <module>
    main()
  File "C:\Users\WORKSTATION\Downloads\insta-unfollower-master\insta-unfollower.py", line 217, in main
    connected_user = get_user_profile(credentials.username)
  File "C:\Users\WORKSTATION\Downloads\insta-unfollower-master\insta-unfollower.py", line 91, in get_user_profile
    return response['entry_data']['ProfilePage'][0]['graphql']['user']
KeyError: 'graphql'
tuxity commented 3 years ago

Hello, sorry for the late response I was busy at work.

I have just tested it again and I'm unable to reproduce. I guess there is an issue with your account, maybe you are temp ban from Instagram ?

Try to print some variables like print(response['entry_data']) just before the return line 91 and check the content

I will try to add some debug output later so people can activate when they want.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days