tuxity / insta-unfollower

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

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) #12

Closed ftuligi closed 5 years ago

ftuligi commented 5 years ago

Hi Tuxity,

thank you for your work. I'm facing this issue:

After few unfollowed users the script gives me an error.

Traceback (most recent call last): File "unfollow.py", line 227, in main() File "unfollow.py", line 219, in main unfollow(user) File "unfollow.py", line 164, in unfollow response = json.loads(response.text) File "C:\Python\Python36\lib\json__init__.py", line 354, in loads return _default_decoder.decode(s) File "C:\Python\Python36\lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Python\Python36\lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

tuxity commented 5 years ago

I have no problem, I think it's because Instagram restrict the amount of requests coming from your IP.