Answer the question
In order to leave comments, you need to log in
How to track all requests in QWebEngine and get the data they loaded separately?
Greetings!
There is a QWebEngineView, you need to intercept all requests and get exactly their answers.
I found how to intercept requests - through QWebEngineUrlRequestInterceptor,
but, as far as I understand, it is only for intercepting the request itself, without tracking the response.
Here's how to get a response to a specific request?
While I intercept the URL and all the parameters, and through a repeated request from QNetworkAccessManager I get the content,
but this greatly delays the entire download, because For each request, you have to make another one.
Answer the question
In order to leave comments, you need to log in
It won't work without editing the source code. QWebEngine has poor functionality for such purposes, unlike QtWebKit ( https://habr.com/ru/post/191476 ).
You can also run your own proxy server and you will receive all the data with the possibility of modification on the fly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question