I do not know what QNetworkAccessManager::createRequest() has to do with fetching this. QNetworkAccessManager::get() is the tool to fetch the HTML

You have four problems:
  1. Parsing the returned HTML to extract the target of script links (or inline scripts)
  2. A way to tell the scripts you are interested in from other scripts that will be in the document.
  3. Fetching and executing the identified Javascript to generate the output that would be inserted in its place...in order to run it back through step 1
  4. A data structure to hold the results.