tuxity / insta-unfollower

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

KeyError: 'data' , weird error i'm getting just after logging in #3

Closed kevXZY closed 6 years ago

kevXZY commented 6 years ago

You're now logged as XXXX 1314 followers 1958 following building followers list... Traceback (most recent call last): File "insta-unfollower.py", line 208, in main() File "insta-unfollower.py", line 180, in main followers_list = get_followers_list() File "insta-unfollower.py", line 119, in get_followers_list for edge in response['data']['user']['edge_followed_by']['edges']: KeyError: 'data'

tuxity commented 6 years ago

Hi,

maybe instagram updated the response format, we need to check that

tuxity commented 6 years ago

I've made a fix, tell me if it's okay

kevXZY commented 6 years ago

It works now! Many thanks !

kevXZY commented 6 years ago

error back again @tuxity

You're now logged as xxxxx xxxx followers xxxx following building followers list... Traceback (most recent call last): File "insta-unfollower.py", line 209, in main() File "insta-unfollower.py", line 181, in main followers_list = get_followers_list() File "insta-unfollower.py", line 120, in get_followers_list for edge in response['data']['user']['edge_followed_by']['edges']: KeyError: 'data'

tuxity commented 6 years ago

Insta send me an error :/ {'message': 'rate limited', 'status': 'fail'}

kevXZY commented 6 years ago

script seems to work fine now..

Markus978 commented 6 years ago

@neomh What did you change that its working for you? Still have the same issue @tuxity has

tuxity commented 6 years ago

You might want try to increase the sleep timers. Maybe instagram added more security between requests

kevXZY commented 6 years ago

I have to launch the script several times before it works... I don't know what's causing the issue.. I also reboot my vm each time, re clone the repo

Markus978 commented 6 years ago

After keeping off and not touching my account for 24h it also seems to be running smoothly now. Increasing the sleep timers just delayed the time until the error occurred 🙈

ArtFrequencies commented 6 years ago

Not working for me either, I printed the instagram response : {'message': 'rate limited', 'status': 'fail'}

I tried to extend the sleep timers and even add some in betweens but still giving me the same error message.

kevXZY commented 6 years ago

any news ? not working at all right now..

Spreadloveonly commented 6 years ago

Hello everyone, thank you @tuxity for this nice script, unfortunately it dosen't work for me, it's quite weird cause i've got an account with ~120 followings -> the script is working on it, but it doesn't work with an other account that have ~6'000 followings...

Same error as @neomh on top XXX followers XXX_more than 6'000_XXX following building followers list... Traceback (most recent call last): File "insta-unfollower.py", line 209, in main() File "insta-unfollower.py", line 181, in main followers_list = get_followers_list() File "insta-unfollower.py", line 120, in get_followers_list for edge in response['data']['user']['edge_followed_by']['edges']: KeyError: 'data'

Have a nice day 👍

joke4me commented 6 years ago

Same error KeyError: 'data' any workaround please

Markus978 commented 6 years ago

any news here or progress? Error remains unfortunately...

tuxity commented 6 years ago

I guess Instagram added more security to detect many requests, for now I don't know how to fix it.

tuxity commented 6 years ago

After some tests, the one and only way is to wait few hours for instagram to unblock you. I ran into the issue when doing some improvements and had to wait