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.69k stars 1.47k forks source link

[Bug] Error type: checkpoint_challenge_required #1396

Closed nandezer closed 4 years ago

nandezer commented 4 years ago

image

image

Image one: Console errors when trying to run unfollow_non_followers.py
Image 2: IG app suspicious login attempt when trying to run unfollow_non_followers.py

I am trying to run unfollow_non_followers.py script and I get the message in the first on the console. And my IG app in my phone shows the second one. It is from the location I am based (and use my account on my phone daily now), so IG should have this location as a trusted one.

I have tried with different scripts and I get the same outcome with all of them. The problem is obviously in the log in, as that is the first thing that gets stop, I just don't know how to work it around. I have pressed multipletimes that it was a trusted log in ("It was me" on the app") but nothing changes. I read through all the posts and it's due to not having my Chrome cookies copied, but I can't find a way to copy them/create some.

A clear and concise description of what the bug is.

Log

C:\Users\Marc\Desktop\instabot-master\examples>python unfollow_non_followers.py
2020-04-02 08:29:51,355 - INFO - Instabot version: 0.117.0 Started
Which account do you want to use? (Type number)
1: Account1
0: add another account.
-1: delete all accounts.
1
2020-04-02 08:29:52,444 - INFO - Not yet logged in starting: PRE-LOGIN FLOW!
2020-04-02 08:29:54,334 - ERROR - Request returns 400 error!
2020-04-02 08:29:54,334 - INFO - Instagram's error message: challenge_required
2020-04-02 08:29:54,336 - INFO - Error type: checkpoint_challenge_required
2020-04-02 08:29:54,339 - INFO - Unfollowing non-followers.

 ===> Start unfollowing non-followers <===

`bot.following` is empty, will download.
Traceback (most recent call last):
  File "unfollow_non_followers.py", line 24, in <module>
    bot.unfollow_non_followers()
  File "C:\Users\Marc\AppData\Local\Programs\Python\Python38-32\lib\site-packages\instabot\bot\bot.py", line 850, in unfollow_non_followers
    return unfollow_non_followers(self, n_to_unfollows)
  File "C:\Users\Marc\AppData\Local\Programs\Python\Python38-32\lib\site-packages\instabot\bot\bot_unfollow.py", line 118, in unfollow_non_followers
    non_followers = set(self.following) - set(self.followers) - self.friends_file.set
  File "C:\Users\Marc\AppData\Local\Programs\Python\Python38-32\lib\site-packages\instabot\bot\bot.py", line 328, in following
    self._following = self.get_user_following(self.user_id)
  File "C:\Users\Marc\AppData\Local\Programs\Python\Python38-32\lib\site-packages\instabot\bot\bot.py", line 285, in user_id
    return self.api.user_id
  File "C:\Users\Marc\AppData\Local\Programs\Python\Python38-32\lib\site-packages\instabot\api\api.py", line 630, in user_id
    return self.cookie_dict["ds_user_id"]
KeyError: 'ds_user_id'

To Reproduce

  1. Open cmd
  2. cd into the right folder (examples)
  3. run python unfollow_non_followers.py

Expected behavior

Could anyone explain how to create such cookies or whatever is necessary to let the bot log in.

Additional context

trying to run it while I am connected to my account through Google chrome (and that not being a problem)

Version

Python version (python -v): Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)] on win32

Operating Systeem: Win

close-issue-app[bot] commented 4 years ago

This issue has been automatically closed because the issue template is missing or incomplete. Filling the template is required so standard questions don't need to be asked again each time. Our ability to provide assistance is greatly hampered if few minutes are not taken to complete the issue template with the requested information. The details requested potentially affect which options to pursue. The small amount of time you will spend completing the template will also help the volunteers, providing assistance to you, to reduce the time required to help you.