PDA

View Full Version : Reading table from html code



abghosh
23rd February 2010, 11:42
Hi

I want to read a particular table from a html code, e.g. from the code of the webpage:


http://www.nseindia.com/marketinfo/companyinfo/companysearch.jsp?cons=dlf&section=7# (http://www.nseindia.com/marketinfo/companyinfo/companysearch.jsp?cons=dlf&section=7#)

But I dont want to convert the html to xml first and then parse the xml file because I want to read data from the page every second and may be millisecond.

Thanks in advance for any help.

Lykurg
23rd February 2010, 14:31
then you could use regular expressions. And querying a web page < 1s does not make much sense, but you will know why you are doing it...

mcosta
23rd February 2010, 14:33
Try to use QWebFrame and QWebElement classes. They are introduced in Qt 4.6

abghosh
23rd February 2010, 17:46
then you could use regular expressions. And querying a web page < 1s does not make much sense, but you will know why you are doing it...

Actually I want to read live stock quotes from the website. That's why I want to read it at a high frequency of <1s.

squidge
23rd February 2010, 19:00
By doing that will very quickly get your IP address blocked unless you have an agreement with that website.