insta-extract icon indicating copy to clipboard operation
insta-extract copied to clipboard

Can't login

Open JavideSs opened this issue 1 year ago • 0 comments

csrftoken token not found (solved with:

URL_TOLOGIN = URL_BASE+"accounts/login/"
response = self.session.get(
    URL_TOLOGIN
)
self.session.headers.update({
    "X-CSRFToken": re.findall(r'csrf_token\\":\\"(.*?)\\"', response.text).pop()
})

)

But when try to login with:

self.login_session = self.session.post(
    url=URL_LOGIN,
    data={"username":username, "password":password},
        allow_redirects=True
    )

self.login_session.text return html

JavideSs avatar Mar 29 '23 22:03 JavideSs