insta-extract
insta-extract copied to clipboard
Can't login
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