I'm trying to parse source code from : http://panoramafirm.pl/szukaj/mazowi...a/firmy,1.html
There is 15 elements with class="table". I'm trying to get them using this code :
Qt Code:
QWebPage page; QWebFrame * frame = page.mainFrame(); frame->setHtml(str); QWebElement document = frame->documentElement(); QWebElementCollection tables = document.findAll(".table"); int numTables = tables.count(); qDebug() << numTables; return;To copy to clipboard, switch view to plain text mode
In str variable is html code of site that i've downloaded before with qnetwork manager.
This code shows me "0", but there is 15 elements with table class.
My code was working a few days ago, but I think that site was changed, and now my code is not working ;(
Can you help me solve my problem ?
Bookmarks