-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSONDecodeError #49
Comments
@parrabram i to was facing the exact same issue, but i found this repo worked for me |
thank you very much for the recommendation, I will check it out right now |
You can try again, I have some changes |
I'm getting this when using the script with both docker and non-docker Python 3.7. |
I can't reproduce. Try to add Be sure to empty cache folder, and update local git repository to latest version too |
With that added before the response variables, here's the error: https://pastebin.com/LZBW14mG |
I think somehow you are not considered as logged in, did you remove files in cache directory ? |
Strange, all I did was clear the cache directory before running the script. If I wasn't considered logged in, then how would it unfollow some of the other accounts. For the first few it seems to work fine. Would it have anything to do with the cache directory being located in the same directory as the cloned git repo? It's located under ~/insta-unfollower/cache |
Python 3.8.6 same error It also happens the same on the other repo https://github.com/ricardojoserf/instagram-followers-bot Must have to do with instagram blocking unfollowing after 15 unfollow |
Oh it's only doing after few unfollows ? I thought it was on the first. Then yes, it must be some kind of limit. I will more tests this weekend. |
Is there any way I could edit the script to add a time to wait between each unfollow to possibly fix this? |
Your account is a new account ? When googling instangram unfollow limits I found this:
|
Not new at all, 5+ years old. 2300+ following that I have to unfollow. |
I ran it again, 17 unfollowed, and then the Account not new either, I think I have it since 2 years ago. Easy fix would be to kind of reload the program in case of failure, BUT when I reload it straight after I have the error straight away. So it would need a timer and a restart. |
Could the error come from account that are private and ask if you are sure you want to unfollow them ? |
the error comes up whenever a 429 response received and the message of this response is I was able to partly solve this using the following code in the unfollow func:
and with this code added to the main func so it will now loop the function instead of throwing an error:
and by increasing the wait time between each unfollow request I believe this error shouldn't appear at all |
Not even getting to unfollow one user, getting error (python 3.8.5) Traceback (most recent call last): |
Sorry for the mega late response, I will check this again. I will try to confirm @netayamin answer and implement the code if needed. |
I managed to get temp banned from Instagram by Following a lot of people in a short time. |
Begin to unfollow users...
Traceback (most recent call last):
File "insta-unfollower.py", line 301, in
main()
File "insta-unfollower.py", line 290, in main
while unfollow(user) == False:
File "insta-unfollower.py", line 195, in unfollow
response = json.loads(response.text)
File "/usr/lib/python3.5/json/init.py", line 319, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
PLEASE HELP
The text was updated successfully, but these errors were encountered: