Best way to parse HTML in Qt?

后端 未结 2 1318
[愿得一人]
[愿得一人] 2021-02-05 10:16

How would I go about parsing all of the \"a\" html tags \"href\" properties on a page full of BAD html, in Qt?

2条回答
  •  梦如初夏
    2021-02-05 10:32


    this question is already quite old. Nevertheless I hope this will help someone:

    I wrote two small classes for Qt which I published under sourceforge. This will help you to access a html-file comparable you are used with XML.

    Here you'll find the project:
    http://sourceforge.net/projects/sgml-for-qt/
    Here you'll find a help-system in the wiki.

    Drewle

提交回复
热议问题