Answer the question
In order to leave comments, you need to log in
How to parse data through two-factor authentication in Python?
You need to parse the data from the page, access to which opens after authorization: Login + Password, then the password from the Google Auth application.
Site opymptrade.com, you need to parse the interest rates of some pairs. I will not ask for a detailed code, but I will be grateful for "you need this and this library". I'm new in python, but I can parse simple pages, I'm familiar with lxml and xpath, but not yet with requests and complex authorization
Answer the question
In order to leave comments, you need to log in
And who prevents you from logging in with your hands and then using the authorization token, at least zaparsis. Or is the token limited in time?
The essence is simple: we log in to the browser (and in the future), we reach the moment when it does not ask for authorization, we look at the cookies, copy the data from them and go ahead, we will still need to copy the "Agent" - most likely there is a comparison of aegnt and cookies. In python, when making a request, you simply send a couple of headers - and you don’t have to bother with two-factor authentication.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question