Y
Y
yahabrovec2019-09-17 13:10:45
Python
yahabrovec, 2019-09-17 13:10:45

Workaround for python instagram ClientCheckpointRequiredError?

I'm making an Instagram bot
Here's a little about the library:

Name: instagram-private-api
Version: 1.6.0.0

An error is thrown:
instagram_private_api.errors.ClientCheckpointRequiredError: checkpoint_challenge_required

When authorizing, it asks to pass the so-called "checkpoint_challenge". Allegedly, the device from which I log in is not included in the list of devices that usually manage my account. You can go to the application or website, and click the "This is me" button. Further authorization is successful.
Question: After some time, instagram will remember this device and stop asking for confirmation in the application, or will it always be like this?
If always, then how to get around this, maybe there is a loophole that everyone who writes instgram bots uses.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Insayrex, 2020-03-12
@Insayrex

you need to set the user_agent of your device in the configs, for example...

from instagram_private_api import Client
from instagram_private_api import constants

user_name = 'some_name'
password = 'some_password'

constants.Constants.PHONE_MODEL = 'HUAWEI'
constants.Constants.APP_VERSION = '80.0.3987.99'
constants.Constants.ANDROID_VERSION = 7

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question