using web browser "links" in C

This is a discussion on using web browser "links" in C within the Linux Programming forums, part of the Platform Specific Boards category; I want to use text-based web browser "links" to store the html code of a website.but dont know what is ...

  1. #1
    Lord CyKill
    Guest

    using web browser "links" in C

    I want to use text-based web browser "links" to store the html code of a website.but dont know what is the way to implement it in a
    c-program. e.g. to save the html code of cprogramming.com, how do i do that? Also, if i want to detect any active links to other pages in the stored html codethan how should i distinguish those from the html code?

  2. #2
    Registered User
    Join Date
    Apr 2003
    Posts
    32
    >strstr( line, "<a href" ); maybe?
    Sometimes '<a href' can contain "blank" links, like:
    Code:
    <a href="#" onClick="javascript:void test('lala')"></a>
    It is a poor using of the <A> element, in this case, I think it's better to use a regular expression to check if contains a link.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Web browser based program
    By Lauris in forum C++ Programming
    Replies: 3
    Last Post: 11-14-2007, 05:01 PM
  2. Web Browser Control Help
    By dcboy in forum C# Programming
    Replies: 0
    Last Post: 10-22-2006, 10:25 AM
  3. Socket web browser
    By digitaltsai in forum Networking/Device Communication
    Replies: 17
    Last Post: 10-09-2005, 09:20 AM
  4. Web browser, dialogs, & kicking my pc
    By jinx in forum Windows Programming
    Replies: 1
    Last Post: 12-22-2001, 06:47 PM

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