subzeroid / instagrapi-rest

RESTful API Wrapper for Instagram Private API
https://hikerapi.com/p/ygXxF38v
MIT License
499 stars 128 forks source link

Login by session id (to import) #63

Closed nathanfallet closed 1 year ago

nathanfallet commented 1 year ago

I encountered the same problem as https://github.com/subzeroid/instagrapi/issues/135 but with this payload instead:

{
  "detail": "Please wait a few minutes before you try again.",
  "exc_type": "PleaseWaitFewMinutes"
}

and also when trying to login again from the server:

{
  "detail": "The password you entered is incorrect. Please try again. If you are sure that the password is correct, then change your IP address, because it is added to the blacklist of the Instagram Server",
  "exc_type": "BadPassword"
}

(I've been trying multiple things for the whole week without success)

So as @syunki4649 mentioned, we can import the session id from somewhere else (eg. browser) to be able to login, so I added the route to do so.

subzeroid commented 1 year ago

@NathanFallet thank you!