Unsolved Looking for advice on web related project.
-
Hi, i am new to Qt WebView and web browser development.
Considering working on a webcrawler type project that gathers news.
What is best/easy solution to look at to get websites visually displayed in qt and be able to connect visuals to html code and also copy the text?
For example select bunch of text and grab same position in html text in qt powered application, and auto copy other news articles by autofinding article beginning in same site if news releases.
Also do same in background without powering the visual aspect.
Is it possible to save full web page to hard disk and reload it exactly same way?
Sorry about my english , let me know if something is unclear..
-
@Q139 up
-
@Q139 up
-
This is not an answer to each of your questions, but while you await that here are the things you should look at in the Qt docs:
QtWebEngine
, notQWebView
, which is deprecated/no longer supported in the Qt releases. Unless you meantQt WebView
which is a QML thing, and usesQt WebEngine
anyway.QWebChannel
. Perhaps have a read of https://stackoverflow.com/questions/28565254/how-to-use-qt-webengine-and-qwebchannel.QNetworkAccessManager
.A totally different approach would involve going down the newQt for Web Assembly
route.
-
You can do all the above. Qt WebEngine is nothing but a wrapper of the engine powering Google Chrome web browser so if the browser can do it, Qt WebEngine can. If you want to access APIs then
QNetworkAccessManager
is the way to do it,QWebChannel
and the webasembly platform plugin are unrelated to your problem -
@VRonin
I totally admit this is not my area, but I thought for the OP's e.g.and auto copy other news articles by autofinding article beginning in same site if news releases.
he might need some
QWebChannel
to be able to play with what might be going on in JavaScript, or interact with JS himself, no (I have never used it)?I see that webassembly should indeed not be relevant.
-
This post is deleted!