OlegYurchik / pyInstagram

This is a simple and easy-to-use library for interacting with the Instagram. The library works through the web interface of the Instagram and does not depend on the official API
MIT License
232 stars 49 forks source link

Не могу отправить код подтвреждения #75

Open ApollonSeven opened 4 years ago

ApollonSeven commented 4 years ago
from instagram import WebAgentAccount, Media, Account

agent = WebAgentAccount("login")
agent.auth("password")

При авторизации не получаю ответ в виде авторизационной страницы, которую нужно указывать для метода сheckpoint. В итоге не могу авторизоваться. Может я что-то неправильно делаю?!

evgenyadev commented 4 years ago
        except CheckpointException as error:
            agent.checkpoint_send(error.checkpoint_url, error.navigation['forward'], 0)
            secr_code = input("Enter code from SMS: ")
            agent.checkpoint(error.navigation['forward'], secr_code)