Click here to Skip to main content
15,896,329 members
Articles / Web Development / ASP.NET

Get page HTML from URL using WebClient, Strip HTML using Regex , export a list of Anchors into Excel or XML.

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
6 Nov 2012CPOL2 min read 31.5K   793   11  
Get page HTML using System.Net.WebClient class of .NET as well as striping HTML using Regex and export a list into Excel or XML.

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LinksFromUrl", "LinksFromUrl\LinksFromUrl.csproj", "{05FBB4AA-06EC-482C-9478-8D7BB387D289}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GetHtmlFromUrl", "GetHtmlFromUrl\GetHtmlFromUrl.csproj", "{F4B5DDC5-7198-45E7-AF08-7C0B6B97411F}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{05FBB4AA-06EC-482C-9478-8D7BB387D289}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{05FBB4AA-06EC-482C-9478-8D7BB387D289}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{05FBB4AA-06EC-482C-9478-8D7BB387D289}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{05FBB4AA-06EC-482C-9478-8D7BB387D289}.Release|Any CPU.Build.0 = Release|Any CPU
		{F4B5DDC5-7198-45E7-AF08-7C0B6B97411F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{F4B5DDC5-7198-45E7-AF08-7C0B6B97411F}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{F4B5DDC5-7198-45E7-AF08-7C0B6B97411F}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{F4B5DDC5-7198-45E7-AF08-7C0B6B97411F}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) ERICSSON INDIA GLOBAL SERVICES PVT. LTD
India India
MCPD 3.5 in 2011
Working as a Senior Dot Net Developer/Integration Engineer since last six years

Comments and Discussions