I am looking to get the written text from an internet site with no source code.
I've this code:
HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create("http://www.google.com"); myRequest.Method = "GET"; WebResponse myResponse = myRequest.GetResponse(); StreamReader sr = new StreamReader(myResponse.GetResponseStream(), System.Text.Encoding.UTF8); string result = sr.ReadToEnd(); sr.Close(); myResponse.Close(); Console.WriteLine(result);
Which obviously can give me the written text but the source code too. How shall I get rid of the origin code?