How to get details from webpage viewsource

Posted by Sampath1750 under ASP.NET on 4/19/2013 | Points: 10 | Views : 917 | Status : [Member] | Replies : 1
Hi al
I am getting the source of a webpage having job posting, and i need to get the jobdetails like Job Title, Skills, Job Location, Experience Level, Company Name, Address, Website URL, Phone from the source.

Using below code i saved web page source to string

WebClient client = new WebClient();
string source = client.DownloadString(CompanyURL);



Posted by: perfectchourasia-9163 on: 5/20/2013 [Member] Starter | Points: 25

This is known as parsing htl

Use html Agility

HtmlWeb hw = new HtmlWeb();
HtmlDocument doc = hw.Load(Myurl);

ER sandeep chourasia (on facebook)

Sampath1750, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response