|
-
Mar 8th, 2007, 10:41 AM
#1
Thread Starter
Hyperactive Member
[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

-
Mar 8th, 2007, 11:49 AM
#2
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
-
Mar 9th, 2007, 02:12 AM
#3
Thread Starter
Hyperactive Member
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

-
Mar 10th, 2007, 01:56 AM
#4
Thread Starter
Hyperactive Member
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:
webBrowser3.Document.Links[counter]
when I used
vb Code:
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|