Crash893
Crash893

Reputation: 11702

Grab HTML code from web

I'm working on a project for fun but i want to grab just the html code from a website which I will later have to extract just the links.

I've been googling for a few minutes and I haven't found anything that does what I want specifically (just the text).

Upvotes: 0

Views: 1250

Answers (4)

personaelit
personaelit

Reputation: 1653

This was helpful to me a while ago -- Parsing HTML in C#

Upvotes: 0

Ta01
Ta01

Reputation: 31610

Have you looked at a standard tool like Httrack, or if you want to actually want the html if you're programming for fun look at WebClient or HttpWebRequest if you want to learn more.

Upvotes: 2

David Hedlund
David Hedlund

Reputation: 129782

What you want is the HTML Agility Pack

Upvotes: 6

Crash893
Crash893

Reputation: 11702

WebClient client = new WebClient();
String htmlCode = client.DownloadString("http://born2code.net");

Upvotes: 4

Related Questions