I want to scrap the content of an asp-based web pages from WPF application, and I want to know what is the best way
is it using WebBrowser control? or is there a lighter way to do that?
Any thoughts?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You certainly shouldn’t need to use a WebBrowser control. All you need to use is a System.Net.WebClient class to pull down the page’s HTML as a string. You can then parse that using a regular expression or something. Have a look at the example at the bottom of the WebClient MSDN page.