I wanna read out a server status webpage every x seconds.
Site is: http://www.ffxiv-status.com/
how to do it easily and fast?
I found this lines in Google, to read out the page source:
WebClient wClient = new WebClient();
string strSource = wClient.DownloadString("http://www.google.de");
I could split the page then wth string and so on and can have a look of the status and ms of the server.
Is that the fastes and resource best way or is there a better way?
(c#.net 3.5 VS 2010)
What you’re trying to make is a small scraper. You can definitely get the page source and then analyze it. I suggest using regular expressions to look for the desired content. Of course you’ll have to keep updating your parsing routines if the page design changes.