Question Open Link Automaticaly and Grab Text

Haxaro

Well-known member
Joined
Mar 13, 2009
Messages
105
Programming Experience
1-3
My friend challanged me to make a quick app that will create 3 random letters, and search google with it which i can do. It is then ment to open the first link, and grab a sentance, or a group of words randomly. Is it possible to do this, and if so, how?

Thanks SO much!
 

rcombs4

Well-known member
Joined
Aug 6, 2008
Messages
189
Programming Experience
3-5
Code:
Net.WebClient.DownloadString(URL)
Is a fun little function that will download the contents of a webpage to a string. That should be a great starting point.
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,324
Location
Norway
Programming Experience
10+
If you don't feel like parsing Html code you can use the WebBrowser control and access its Document object and the node tree.
 
Top Bottom