A
A
AleDv2019-05-30 13:58:09
Python
AleDv, 2019-05-30 13:58:09

How to catch fetch requests in Selenium?

Hello. There is a site on react. It receives data from the back via API.
Through the developer tools in the Networks tab, I found the addresses that the front accesses for data, and the answer, respectively. API access with authorization, so don't knock directly.
Actually, is it possible to somehow get this response coming from the back in JSONe through Selenium?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nekitvand, 2019-05-30
@nekitvand

No.
Use the requests library for this in a separate script.

E
Evgeniy _, 2019-06-03
@GeneD88

Try to bind browsermob-proxy. It allows you to make a dump and then work with it, as with a regular dictionary.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question