Julian-O / Instagram-API-python

Unofficial Instagram API in Python.
Other
22 stars 14 forks source link

Checkpoint support #2

Closed roperi closed 7 years ago

roperi commented 7 years ago

...In order to overcome problems like #29

A PHP-based solution can be found in checkpoint_required #379 at mgp25/Instagram-API.

Julian-O commented 7 years ago

Sorry, I have little idea what this means. Do you have a better description of the problem and the solution? Is it ported to Python?

roperi commented 7 years ago

Hi, Julian!

As far as I understand LevPasha based his Instagram-API-python on mgp25's Instagram-API (which is PHP based).

It would be great to be able to handle errors like the "checkpoint_challenge_required" one and related ones which requires the user to verify his/her account.

Thanks

Julian-O commented 7 years ago

Yes, LevPasha has loosely based his solution on Instagram-API. The structure is quite different though, so the mapping between them isn't obvious.

I see that in the PHP examples, they show how a user can perform two-factor authentication.

Unfortunately, I neither have code from LevPasha that does this, an account that has 2FA, or a firm grasp on the protocol to implement this myself.

Does anyone want to make a stab?

skawm commented 7 years ago

Hi! indeed checkpoint support would be very useful =/

Julian-O commented 7 years ago

I now support 2FA. I do not know if that is the same as checkpoint support. It sounds awfully like checkpoint support is related to having your account restricted in some way.

In the absence of a clear description of the problem, and a way to replicate, I cannot even attempt to fix this. I welcome others to try.

roperi commented 7 years ago

@Julian-O

Sorry if I haven't provided a clear description of the problem yet. Mainly because I haven't taken enough notes about it. Also, it didn't help me the PHP folks deleted the solutions to this and related issues from their repo. Once I'm ready to clearly explain the issue and replicate it I'll report back here. Thanks!

Julian-O commented 7 years ago

I've been doing a bit more reading. It seems checkpointing is required when Instagram figures out you are using an unofficial API and/or logging in from an unusual location and are worried you are spamming, so they require you to log in from your phone. The short-term solution is to log in from your phone. The long-term solution is to work out what behaviour (spamming, perhaps?) attracted their attention and avoid it