-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[QUESTION] Can't login (Checkpoint challenge required/Not possible to log in) #1293
Comments
Can you post the full log file that is in log directory ? |
@bruvv here you go:
@bruvv any ideas? |
I have exactly the same problem. I also tried many fixes that are in the issue section and nothing works. |
I just realised that I can log in when running "python instabot_py" line with the config. After I ran it, a .session file was created for my username. Perhaps there is a way to use the created .session file with the script i'm trying to run? |
@kozyemoloko do my best :) @mamk02 what do you mean? What script do you run? can you copy paste the code between code markups?
|
I meant that I use the follow_user_followers.py from the examples folder: https://github.com/instagrambot/instabot/blob/master/examples/follow_user_followers.py |
can you than eleborate this sentence?
|
So I only get the error when I type in the cmd "python follow_user_followers.py user". However when I type in cmd "python instabot_py" (with the instabot.config.yml where i specified the username, password and other details), the bot logs in without any errors. |
@bruvv thank you! @mamk02 I also tried what you did (running “python instabot_py”) and it worked for me. But just like you said, it still cannot log in when running one of the example scripts. Someone suggested to try using a VPN; which I tried and was unsuccessful. |
@bruvv sorry I meant the other git. https://github.com/instabot-py/instabot.py this one works for me. I didn't realise that these projects are not related to each other. |
any news? Have the same issue... |
Nope, couldn't find any solution yet :( |
yeah i have the same issue... ,I have tried to give suggestions, the suggestions is "I think you need to use the script saving cookies, so when I accept the login challenge, this challenge in the next login is not show again" ,like this script https://github.com/instabot-py/instabot.py he use that method (saving cookies) |
I started using this bot yesterday. I had no issue until today when I tried with another account. to my understanding, you are not saving the cookies. as @nizarganteng mentioned you have to save the cookies. I tried duplicating the cookies and updated the detail of the cookies from my chrome's login cookies. and Viola! it worked. |
how do we save cookies ? |
Thanks for the suggestion. But i don't really know how to do that. Could you please explain how it could be done? Thank you! |
you have to create a cookie.json file even in the case of unsuccessful login save all the info needed in that file. just like you are creating in a successful login. |
ımm sorry, with which codes can I create :( |
@bruvv maybe you can learn this script https://github.com/instabot-py/instabot.py he script is include save cookies ,but the problem that script in me is "Trying to comment" (not succes comment) |
I export instagram cookies from chrome. How do i use this. teach me teacher :) |
I was able to jump checkpoint challenge using the correct python before I was using |
i try use Python 3.7.6 still get Error type: checkpoint_challenge_required |
same... i guess using the cookies is the only way to solve this problem but i still couldnt figure out how to do that. |
instabot api saved cookie like this(path in config, named xxx_uuid_and_cookie.json,'xxx' should replace by your ins username),you should modify some value like phone_id or uuid by random,and replace some cookie value by success login by browser(like csrftoken......). modified and save the session file in config path, first login with the session file should show error logout,but finally should be success.This is the way from my tested.Sorry for my bad English. The session json: |
I can't find the file you're referring to, @returnWOW. Any help? |
You can copy my above commented json string, to replace your account cookie on json key "cookie" area, after, Save the file in code path called "./config", right now you can try to using your account name to login. waiting few minutes and see login success. Sorry foy my bad English. |
I don't understand how this file is supposed to be loaded, do I need to add anything to my configuration? @returnWOW |
from api, login succeed, after ,this file auto maintained (generate)by api, but you can first make it by your self, so in this way can jump through login check challenging |
Getting a KeyError for timing_value now @returnWOW, any ideas? |
Well, the cookie just logs out the device I got it from, giving back 403. Edit: Nevermind. It detects the cookie as broken and tries logging in again, which promptly works. Interesting! How to:
{
"uuids": {
"phone_id": "5c7ee0b6-d420-4c83-b252-01503e701340",
"uuid": "4e3eb35e-aa39-39d1-b16d-204a45e4aa73",
"client_session_id": "6abc534e-0213-5e3c-2159-64eef3dd42e7",
"advertising_id": "3f0397c6-5505-1123-ba15-5dd3a8acce06",
"device_id": "android-3f8a1301e66b623e"},
"cookie": {
"csrftoken": "xxx",
"ds_user": "xxx (your username)",
"ds_user_id": "xxx",
"ig_direct_region_hint": "FRC",
"ig_did": "xxx",
"igfl": "xxx (your username)",
"is_starred_enabled": "yes",
"mid": "xxx",
"rur": "xxx",
"sessionid": "xxx",
"shbid": "xxx",
"shbts": "xxx",
"urlgen": "xxx"
},
"timing_value": {
"last_login": 1584284362.348525,
"last_experiments": 1584284361.195544
},
"device_settings": {
"app_version": "117.0.0.28.123",
"android_version": "28",
"android_release": "9.0",
"dpi": "420dpi",
"resolution": "1080x1920",
"manufacturer": "Huawei",
"device": "Mate 10 Pro",
"model": "Mate 10 Pro",
"cpu": "qcom",
"version_code": "180322800"
},
"user_agent": "Instagram 117.0.0.28.123 Android (28/9.0; 420dpi; 1080x1920; Huawei; HUAWEI MATE 10 PRO; Mate10Pro; qcom; de_DE; 180322800)"
}
Not guaranteed to work, but did for me. |
This should be marked as an actual issue since the bug is somewhat consistently reproducible. If someone is willing to try out a proper fix, I'm thinking it'd probably be possible to avoid the checkpoint by using a usual browser user agent. After any successful login, we could switch the cookie over to use a mobile user agent again to gain all functions. |
That will be great if we can develop that. Does that mean we should include selenium ? |
@leon-wbr wow thank you so much! It's finally working for me! :D |
Before submitting an issue, make sure you have:
Which example file are you using?
Describe your Question/Issue:
I have looked at all the issues and "fixes" but nothing seems to work.
I tried:
resetting password and deleting the secret.txt file
enableing/disableing 2FA
temporarely disableing my account for 3 hours and logging in with the bot
all of these methods got me to the same issue. The other fixes I took a look at involved modifying the script which for me wasn't explained clear enough how to do it. Instead of linking the previous issues (all of which I've looked at), please share what could be done. Thank you!
Paste the output of
python -V
here: Python 3.8.0Code you are using:
Error/Debug Log:
The text was updated successfully, but these errors were encountered: