N
N
Nazar Tropanets2020-05-26 14:57:20
Python
Nazar Tropanets, 2020-05-26 14:57:20

POST requests via Selenium?

The task is this - through Selenium I have to go to the site and pass the captcha and then the parser must send a POST request, but Selenium cannot send post requests. What should I use for this task?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Yakushenko, 2020-05-26
@nazartropanets

urllib or requests

K
Konstantin, 2020-05-26
@Norraxx

Selenium never sends any POST request anywhere. You mixed apples with pears.
Selenium controls the browser. If you need to open a page using a POST request, create a form, open the form, and only then through selenium.
Next, you can upload a piece of JS code to the browser, which will create the form for you and open it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question