N
N
noxmag2022-02-17 20:40:25
Parsing
noxmag, 2022-02-17 20:40:25

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

1 answer(s)
S
soremix, 2022-02-17
@noxmag

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 question

Ask a Question

731 491 924 answers to any question