reading data from html page

This is a discussion on reading data from html page within the C Programming forums, part of the General Programming Boards category; hi iam reading data from web page using request socket and curl socket. now my problem is some the web ...

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    90

    reading data from html page

    hi
    iam reading data from web page using request socket and curl socket.
    now my problem is some the web page containg data as a image so how can i read the data from a image.
    thank,inadvance.
    sree

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    OCR? [optical character recognition]
    Image Recognition?
    Pattern Recognition?
    Face Recognition?

    What's in the image?
    What do you want to get out of the image?

    Without knowing the two above questions, it's impossible for us to give you a good answer.

    And unless the image is either fairly trivial, or "one of a set", you probably will need quite a bit of functionality to figure out what the image is.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Aug 2006
    Posts
    90
    thanku for ur reply.
    when i read the web page how can i get the following data from images in the webpage
    Last edited by cnu_sree; 11-01-2007 at 10:58 PM.

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    And which of the several images that are on that page do you actually want to interpret? What sort of information are you trying to retrieve?

    Most of the images are buttons for links, which would make them pretty pointless to "interpret" [just look at what the link the reflect is, instead]

    Of course, the page also contains java-script, which would require "running the script" to get what it actually produces.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  5. #5
    Registered User
    Join Date
    Aug 2006
    Posts
    90
    i want data from th following lionk
    http://www.google.com
    inthis i want all the data in table
    thank u
    sreeee
    Last edited by cnu_sree; 11-01-2007 at 10:57 PM.

  6. #6
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Well, it looks like text to me. It's probably produces by
    Code:
    <p class="sj">
    	<script language="JavaScript" src="http://man.barchart.com/pl/man/main.js"></script>
    </p>
    So you'll have to parse that script and dig out what it does - which is probably a bit harder than scraping text out of a html page, but so be it.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  7. #7
    Registered User
    Join Date
    Aug 2006
    Posts
    90
    so is it not possible in c??

  8. #8
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    I don't know - I haven't even looked at that script - but I guess that the provider of that page may not actually like you to read the page-content via some other tool, so they may not actually make it easy to get to the actual data for that reason [or they may use java-script for some comletely different reason].

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Please Help - C code creates dynamic HTML
    By Christie2008 in forum C Programming
    Replies: 19
    Last Post: 04-02-2008, 08:36 PM
  2. reading data into a queue from file
    By bcianfrocca in forum C++ Programming
    Replies: 12
    Last Post: 11-17-2005, 11:28 AM
  3. accessing my com port, writing and reading data
    By shoobsie in forum C Programming
    Replies: 7
    Last Post: 09-16-2005, 04:29 PM
  4. Replies: 2
    Last Post: 06-16-2005, 11:03 AM
  5. Reading encrypted data from file
    By cctoombs in forum C Programming
    Replies: 2
    Last Post: 02-13-2005, 02:59 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21