How can I read from a website? C# [duplicate]

trying using WebClient.DownloadString

http://msdn.microsoft.com/en-us/library/system.net.webclient.downloadstring(v=vs.110).aspx

WebClient client = new WebClient ();
string reply = client.DownloadString ("http://google.com");

you then parse the document for the things you want. you can use the HTML Agility pack for that

http://html-agility-pack.net

Leave a Comment