K
K
klajowski2021-04-25 15:23:28
Qt
klajowski, 2021-04-25 15:23:28

How to get the html code of a page in Qt, C++ and remove unnecessary parts of the page code?

I have a page with the information I need. I want to get this information without unnecessary menus, buttons, etc.
All this needs to be done in Qt in C++. This code should work for one specific site. Also, after the performed actions, I want to display this page in a window (already without unnecessary parts).

How to do it? Where to begin?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jacob E, 2021-04-25
@klajowski

It depends on the site itself, but in a nutshell, you need to download the page, parse it in some way, be it (horror-horror) regular expressions or an XML parser , and send it to display through WebEngine .
You can also look towards QtWebKit .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question