I was wondering if anyone can show me how to extract text from a website.
I have seen lots of ways to get the html source, then go through the tags, but the problem is that the text displayed on the webpage is taken from a javascript function.
Is there anything which can render the page, then allow me to extract the textual content?
cheers
Loading
Bechir BejaouiPosted Jan 27, 2009, 5:24 PM
WebClient webClient = new WebClient();
string url = "http://www.c-sharpcorner.com/";
byte[] request = webClient.DownloadData(url);
UTF8Encoding utf = new UTF8Encoding();
TextBox.Text = utf.GetString(request);