Answer the question
In order to leave comments, you need to log in
How to parse a site with authorization via SMS?
There is a certain personal account where you need to log in using your login and password, but then you should receive an SMS with a code. Is it possible to parse data from there? Or is it better to enter the office first and then start parsing?
Answer the question
In order to leave comments, you need to log in
If you use requests, then a session is created
sess = requests.Session()
. Through it, a request is made for authorization by login and password, then a two-factor request is sent in the same way, having previously received a code from SMS via input, well, then just parse
. Either log in through the browser and requests are already just cookies substitute, or a header, depending on how the session is implemented
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question