How to get details from webpage viewsource

Posted by Sampath1750 under ASP.NET on 4/19/2013 | Points: 10 | Views : 819 | Status : [Member] | Replies : 2
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);

Thanks.




Responses

Posted by: Jitendrasoft09 on: 4/30/2013 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi,
You can get the details from webpage viewsource with doctype, please look into below linkthat would be helpful for you.
http://forums.asp.net/t/1900246.aspx/1

Jitendra Kumar
If my post helps you, plz mark as an answer.

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

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

Up
0
Down
This is known as parsing htl

Use html Agility

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

ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/

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

Login to post response