Answer the question
In order to leave comments, you need to log in
Where can I get csrf token for lk.megafon.ru?
I want to pass authorization on lk.megafon.ru . In the browser, I looked at the data from the post request when passing authorization.
Request address: https://lk.megafon.ru/dologin/
CSRF: long character set
j_username: everything is clear
here j_password: here too
Where can I get the CSRF value? On stackoverflow.com , in a similar question, they wrote that it needs to be pulled out of cookies. They used the following code for this:
s.get(url) # to get cookies
csrf = s.cookies['csrf']
print(dict(s.cookies))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question