realtux / instamanage

Instagram unfollow who doesn't follow you back
23 stars 2 forks source link

No JSON could be decoded #4

Open gurisko opened 7 years ago

gurisko commented 7 years ago

It seems that Instagram changed their endpoint. followers (link) gets 404 back.

console output:

attempting login...
logged in successfully
building follower list...
Traceback (most recent call last):
  File "instamanage.py", line 419, in <module>
    menu()
  File "instamanage.py", line 94, in menu
    start_sync()
  File "instamanage.py", line 135, in start_sync
    data = json.loads(followers.text)
  File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
logging out...
realtux commented 7 years ago

Well that's lame :/

tducasse commented 7 years ago

Well that's lame :/

Exactly what I was thinking haha

I think they changed their endpoint, I read about them deprecating their /query route...

The graphql api seems available at /graphql/query now.

realtux commented 7 years ago

yes, it looks like they are using /graphql/query. rather than a custom string as a post var, they are doing everything as querystring params. the response looks similar. this probably isn't that hard to fix.

gurisko commented 7 years ago

Is anyone looking into this?

danperrout commented 6 years ago

Same issue here...

katepratik commented 6 years ago

@ebrian So have you fixed it yet?

realtux commented 6 years ago

@katepratik No. This project is no longer maintained. I personally don't have any free time to get this fixed. You are welcome, of course, to fork the repo and make the fix. I'm sure it wouldn't take longer than an hour or two.