Results 1 to 4 of 4

Thread: [RESOLVED] How to get Links of webbrowser

  1. #1

    Thread Starter
    Hyperactive Member Bajrang's Avatar
    Join Date
    Oct 2006
    Posts
    309

    Resolved [RESOLVED] How to get Links of webbrowser

    Hi all
    I want to read only useful links fron the google news page for search .
    When I used document.links then it shows all links.
    I want to read all those 10 links that comes when we search for any string from search text box. I examined its (google news search) HTML page but there is no difference among those 10 links and other links.
    any help is appriciated
    Thanks
    Last edited by Bajrang; Mar 9th, 2007 at 01:43 AM.
    Using .NET 3.5 (VS 2008) And XP SP2

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    Re: How to get Links of webbrowser

    You can hit google's rss feed with a query string. With that you only get back the relevant xml.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Hyperactive Member Bajrang's Avatar
    Join Date
    Oct 2006
    Posts
    309

    Re: How to get Links of webbrowser

    Thanks for reply crptcblade
    Is it a xml okay.
    I got this rss in my webbrowser control,
    Now 2 problmes arises
    1. webbrowser1.documentText gives it as html
    2. this HTML is not XML format. It flashes error when we assign this DocumentText to an XMLDocument.

    so again got stuck
    Kindly help me
    Thanks
    Last edited by Bajrang; Mar 10th, 2007 at 01:49 AM.
    Using .NET 3.5 (VS 2008) And XP SP2

  4. #4

    Thread Starter
    Hyperactive Member Bajrang's Avatar
    Join Date
    Oct 2006
    Posts
    309

    Re: How to get Links of webbrowser

    I also tried the method to convert HTML to XML but is not worth doing
    well, can i get those links whose id started with "s-" from
    vb Code:
    1. webBrowser3.Document.Links[counter]
    when I used
    vb Code:
    1. string id=webBrowser1.Document.Links[counter].Id;
    it assigns null to id, why so.......
    Anyone can help me
    Thanks
    Using .NET 3.5 (VS 2008) And XP SP2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width