Re: How to read contents of html table with .net?
- From: "Claes Bergefall" <louplou@xxxxxxxxxxxxx>
- Date: Tue, 29 Aug 2006 11:18:24 -0400
"Vadym Stetsyak" <vadym_s@xxxxxxx> wrote in message
news:uWweLX3yGHA.1292@xxxxxxxxxxxxxxxxxxxxxxx
Hello, Jim!
JS> I have a need to read the contents of an html table on a remote web
JS> page into a variable. I guess this is called screen scraping but not
JS> sure. I'm not sure where to start or what the best practices are to
JS> accomplish this. For instance; I have a healthcare app that need to
JS> check a gov't we page for a user's license no# periodically. There is
JS> no login and I can put the user info in the request URL no problem but
JS> not sure how to read the response data in the tables. What is the
JS> namespace and class(s) I should be looking at?
After receiving table you can parse it. You can use XML parser for this
( System.Xml ).
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Beware that most web pages aren't written with well formed, valid XML (HTML
isn't as strict as XML). The XML parser might not work in that case.
Googling for "screen scraping .NET" should get you some alternatives.
/claes
.
- References:
- Re: How to read contents of html table with .net?
- From: Vadym Stetsyak
- Re: How to read contents of html table with .net?
- Prev by Date: C# if string match found boolean - streamlined code?
- Next by Date: Re: Math without type
- Previous by thread: Re: How to read contents of html table with .net?
- Next by thread: Re: How to read contents of html table with .net?
- Index(es):
Relevant Pages
|