.net html screenscraper tool?

  • Thread starter Thread starter GaryDean
  • Start date Start date
G

GaryDean

Anyone know of html screen scrapper software that will work with .net
projects. We need to get data back from a gov site that only provides it on
a webpage.
Thanks,
Gary
 
If by tool you mean class, then yes. Here is some very simple code that gets
the html returned from a webpage:

Dim source As New System.Net.WebClient()
Dim utf8 As New System.Text.UTF8Encoding()
Dim returnedsource As String =
utf8.GetString(source.DownloadData("http://www.nathansokalski.com/index.aspx"))

If desired you can obviously make this into a function or class if you
wanted a more "tool" like thing, but the code is extremely simple, so you
shouldn't have any problems. Good Luck!
 
Back
Top