I would like to get the latest content of a page that updates too often, for example, https://www.oanda.com/currency/live-exchange-rates/ (prices update every five second on weekdays)
I am using the following code:
var webBrowser = new WebBrowser();
webBrowser.ScriptErrorsSuppressed = true;
webBrowser.AllowNavigation = true;
webBrowser.Navigate("https://www.oanda.com/currency/live-exchange-rates/");
while (webBrowser.ReadyState != WebBrowserReadyState.Complete) {
Application.DoEvents();
}
string myData = webBrowser.DocumentText;
But that does not return me the latest info as shown in the page. Eventually I would like to re-parse that page and get the latest data a few minutes/seconds later.
Any ideas?