Answer the question
In order to leave comments, you need to log in
How to perform actions on a dynamic site without Selenium using python?
There is a site, I need to go through authorization on it and press a few buttons, then get the data.
The site is dynamic.
What technology should be used for this?
Everywhere they write about selenium.
But I don't want to constantly launch the browser and load the page, it's too long.
What other options are there?
Thanks in advance for your reply.
Answer the question
In order to leave comments, you need to log in
If the buttons lead to some page, then you can simply copy the url and parse with them (otherwise, only selenium), as for authorization, you need to view all the headers of the authorized and not authorized user, you can also use the following feature of the requests library :
sess = requests.Session()
sess.post("auth/submit", {
"login": "...",
"password": "...",
"time_zone": "Europe/Moscow"
})
response = sess.get("your url")
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question