Parsing HTML with C++ (using Qt preferably)
问题 I'm trying to parse some HTML with C++ to extract all urls from the HTML (the urls can be inside the href and src attributes). I tried to use Webkit to do the heavy work for me but for some reason when I load a frame with HTML the generated document is all wrong (if I make Webkit get the page from the web the generated document is just fine but Webkit also downloads all images, styles, and scripts and I don't want that) Here is what I tried to do: frame->setHtml(HTML); QWebElement document =