Click here to Skip to main content
15,919,567 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a url which open a page now the page contains few anchor tags and one of them is teacher,
Now i want to scrap the teacher details from that anchor tag.
Suppose i gave u a url name www.html.com now that opens a website and it contains an anchor tag
.Now i want to scrap details of teacher from www.teacher.com
but as an inout i have www.html.com.
How could it be done?
Posted
Comments
ZurdoDev 26-Mar-14 7:19am    
I don't understand you. It sounds like you want to get some of the properties off of an anchor tag? If so, use jquery.
Sumit Bhargav 26-Mar-14 7:31am    
i have an anchor tag containing href='www.google.com' on a website 'www.microsoft.com' now i want to scrap data from www.google.com from the url www.microsoft.com
ZurdoDev 26-Mar-14 7:41am    
I'm not sure what you mean by scrap. If you want to download google.com then you can use the WebClient class, http://msdn.microsoft.com/en-us/library/system.net.webclient.aspx

If you have the HTML downloaded, use HtmlAgilityPack[^] to retrieve the attributes of interest.
 
Share this answer
 
You can download the html source code using the below link and can show it on the div layer.

http://msdn.microsoft.com/en-us/library/system.net.webrequest.aspx[^]


Thanks
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900