Re: Get Webpage Source Code
- From: "Herfried K. Wagner [MVP]" <hirf-spam-me-here@xxxxxx>
- Date: Mon, 19 Mar 2007 23:45:58 +0100
"Mike" <mbaith@xxxxxxxxx> schrieb:
I am trying to find a way to better analyze the meta tags on my website. I would like to get the source code and then parse the code for the meta tags, links, etc.
Can someone give me an example of how to read the source code of a webpage from VB.net?
<URL:http://dotnet.mvps.org/dotnet/code/net/#InternetLoadFile>
Parsing an HTML file:
MSHTML Reference
<URL:http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/mshtml/reference/reference.asp>
- or -
..NET Html Agility Pack: How to use malformed HTML just like it was
well-formed XML...
<URL:http://blogs.msdn.com/smourier/archive/2003/06/04/8265.aspx>
Download:
<URL:http://www.codefluent.com/smourier/download/htmlagilitypack.zip>
- or -
SgmlReader 1.4
<URL:http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=B90FDDCE-E60D-43F8-A5C4-C3BD760564BC>
If the file read is in XHTML format, you can use the classes contained in
the 'System.Xml' namespace for reading information from the file.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
.
- References:
- Get Webpage Source Code
- From: Mike
- Get Webpage Source Code
- Prev by Date: Re: Sendkeys Send ascii code that not printable like chr(20)
- Next by Date: Re: Is VB Caca??
- Previous by thread: Re: Get Webpage Source Code
- Next by thread: Retrieving selectedvalue in multiselect listbox problem
- Index(es):
Relevant Pages
|