ohld / igbot

🐙 Free scripts, bots and Python API wrapper. Get free followers with our auto like, auto follow and other scripts!
https://hikerapi.com/p/N2P6iqiM
Apache License 2.0
4.71k stars 1.47k forks source link

Unable to like - Request return 400 Error! #328

Closed orcunbaslak closed 6 years ago

orcunbaslak commented 7 years ago

Please follow the guide below


Before submitting an issue, make sure you have:

Purpose of your issue?


The following sections requests more details for particular types of issues, you can remove any section (the contents between the triple ---) not applicable to your issue.


For a bug report, you must include the Python version used, code that will reproduce the error, and the error log/traceback.

Paste the output of python -V here: Python 2.7.9

Code:

# Example code that will produce the error reported
from instabot import Bot

It's the ultimate_schedule script with minimal changes. No python error, script runs fine.

Error/Debug Log:

2017-09-09 16:22:25,288 - INFO - Instabot Started
2017-09-09 16:22:26,469 - INFO - Login success as xxxxxx!
2017-09-09 16:22:26,469 - INFO - ULTIMATE script. 24hours save
2017-09-09 17:22:27,054 - INFO - Stats saved at 2017-09-09 17:22:27.
2017-09-09 18:22:26,802 - INFO - Liking timeline feed:
2017-09-09 18:22:27,236 - INFO - Stats saved at 2017-09-09 18:22:27.
2017-09-09 18:22:27,532 - INFO - Received 10 medias.
2017-09-09 18:22:27,533 - INFO - After filtration 1 medias left.
2017-09-09 18:22:27,533 - INFO - Going to like 1 medias.
  0%|          | 0/1 [00:00<?, ?it/s]2017-09-09 18:22:27,848 - WARNING - Request return 400 error!
2017-09-09 18:22:37,857 - INFO - DONE: Total liked 0 medias.
2017-09-09 19:22:27,015 - INFO - Going to like media with hashtag #gunesenerjisi.
2017-09-09 19:22:27,444 - INFO - Stats saved at 2017-09-09 19:22:27.
2017-09-09 19:22:28,916 - INFO - Received 62 medias.
2017-09-09 19:22:28,917 - INFO - After filtration 7 medias left.
2017-09-09 19:22:28,917 - INFO - Going to like 7 medias.
                                     2017-09-09 19:22:29,264 - WARNING - Request return 400 error!
  0%|          | 0/7 [00:00<?, ?it/s]
2017-09-09 19:22:39,276 - INFO - DONE: Total liked 0 medias.
---

Describe your issue

Explanation of your issue goes here. Please make sure the description is worded well enough to be understood with as much context and examples as possible.

I have tried the same script on my own computer, on a VPS and on an other computer. I'm getting the 400 error for likes. Even if the IP changes; the like ban continues.

I also tested a chrome addon called Everliker which works fine (It's a barebone addon that just does web based liking. No follow/unfollow/comment etc).

Whe I worked my way thru the files I saw the config.py where you stored the user-agent and other signature related stuff. I believe since everyone using the same signature for Android 9.2 with IG_SIG_KEY = '012a54f51c49aa8c5c322416ab1410909add32c966bbaa0fe3dc58ac43fd7ede'; It's dead easy for Instagram to tag people who use the python script and avoid liking using instabot while allowing their app on iphone and web to work.

Is there a way to update this value to a much more current one and try again? I don't believe VPNs, proxies, different IPs will work since we are the only ones with the red riding hood.

Br,

popadiys commented 7 years ago

this IG_SIG_KEY key comes from reverse engineering their native app. So it is not really dead easy to tag people and ban them. Not sure what is happening, since other bots have similar issues now.

orcunbaslak commented 7 years ago

IG_SIG_KEY is tied to a user-agent. Even if you change one letter in the user-agent; It does not work. So people with the combination of user-agent and IG_SIG_KEY in the config.py can be easily throttled.

Do you have an other user-agent that works with the IG_SIG_KEY?

Br,

popadiys commented 7 years ago

IG_SIG_KEY is tied to the version of the IG app. I personally updated the IG_SIG_KEY and the user agent according to the latest in https://github.com/mgp25/Instagram-API and https://github.com/LevPasha/Instagram-API-python (from the later is taken this bot api code.)

furnacemfg commented 7 years ago

@popadiys Did updating the IG_SIG_KEY resolve this issue for you?

popadiys commented 7 years ago

@furnacemfg I've never faced the issue myself. But I prefer to have the later IG_SIG_KEY settings than an 3 years old one.

furnacemfg commented 7 years ago

@popadiys Makes sense. IG_SIG_KEY was simple enough to hunt down. Is it possible to update IG_SIG_KEY without updating the USER_AGENT or are the two tied together?

The string replacement for User Agent in https://github.com/mgp25/Instagram-API is fairly involved:

const USER_AGENT_FORMAT = 'Instagram %s Android (%s/%s; %s; %s; %s; %s; %s; %s; %s)';

Kjartansson commented 7 years ago

Is there a guide to get a new IG_SIG_KEY i also get the 400 error

Nader-abdi commented 7 years ago

I have this problem, please provide a review and possible solution

bardascat commented 7 years ago

same problem , 400 error !

ugurozturk commented 7 years ago

same problem 400 error

pxtyr commented 7 years ago

400 error means you are showing spam activity and Instagram blocks this. There is no way around this as it is (probably) tracked by username not nescesarilyl the IG_SIG or other session identifiers.

If you stop spamming Instagram you won't get a 400 thrown at you

Killerherts commented 6 years ago

Anybody care to share thier new config with new ig sig I have one account that's working one that's 400 same computer different i.p. addresses

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

AKwoKWH commented 5 years ago

I have same issue, but after turning of using cookie, then it works fine.