Accessing the DOM
-
Hello,
I'm trying to write a basic webspider and reviewing my options in doing so I came across Qt's QtWebEngine.
It appears that my only option for accessing the DOM is via javascript injected into the rendered page, but that appears to be one-sided in the sense that I can, e.g., highlight all links, but I have no mechanism for communicating which nodes are links from JS back to C++.
Is my understanding there correct?
-
Hello,
I'm trying to write a basic webspider and reviewing my options in doing so I came across Qt's QtWebEngine.
It appears that my only option for accessing the DOM is via javascript injected into the rendered page, but that appears to be one-sided in the sense that I can, e.g., highlight all links, but I have no mechanism for communicating which nodes are links from JS back to C++.
Is my understanding there correct?
Hi @jferguson ,
Have a look at:
https://doc.qt.io/qt-6/qwebchannel.html -
Hi @jferguson ,
Have a look at:
https://doc.qt.io/qt-6/qwebchannel.html -
@mpergand Hi, thanks. Looking at it briefly the answer seems to be to delete Qt and find another option-- injecting another javascript seems absurd. However, thank you none the less because that does appear to solve the problem.