Results 1 to 5 of 5

Thread: Reading table from html code

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2010
    Posts
    31
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi
    Platforms
    Windows

    Question Reading table from html code

    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#


    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.



  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Reading table from html code

    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...

  3. #3
    Join Date
    Feb 2010
    Posts
    31
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi
    Platforms
    Windows

    Default Re: Reading table from html code

    Quote Originally Posted by Lykurg View Post
    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.

  4. #4
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Reading table from html code

    By doing that will very quickly get your IP address blocked unless you have an agreement with that website.

  5. #5
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Reading table from html code

    Try to use QWebFrame and QWebElement classes. They are introduced in Qt 4.6
    A camel can go 14 days without drink,
    I can't!!!

Similar Threads

  1. how to get html code to a string?
    By cram07 in forum Newbie
    Replies: 2
    Last Post: 6th October 2009, 21:27
  2. problem displaying html code in QTextEdit
    By mourad in forum Qt Programming
    Replies: 2
    Last Post: 7th September 2009, 09:25
  3. Replies: 1
    Last Post: 24th July 2008, 18:20
  4. Replies: 9
    Last Post: 21st June 2007, 10:27
  5. Displaying picture included with html code
    By Djony in forum Qt Tools
    Replies: 1
    Last Post: 27th November 2006, 16:15

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.