Read HTML

SeanStick

New member
Joined
Mar 17, 2009
Messages
1
Programming Experience
Beginner
Hello,

I have been searching the web for a while now and can not find a solution.

I want to go to a website and grab all the links on the site and place them in a list.

Can someone direct me.

Thanks!
 
Hello.

Use the HTTPRequest class to get the site (as String), after that you can use Regular Expressions (RegEx Class) (found in System.Text.RegularExpressions) to extract all links...

You can get a Match onto a Link with something like
VB.NET:
<a[\w\d\s=":._\-\\/]*>[\w\d\s]*</a>

Bobby
 
Back
Top