I’d love to poll a web page that has constantly updating dynamic data, and grab that data. I don’t want to reload the entire page every second. Is there way to grab that data without reloading the page?
I’m coding as a console app for demo purposes.
Many thanks!
Not really. For starters, HTTP is stateless. When you perform an HTTP request, you’ll always get static data back, even if dynamic routines were used to generate it.
Doesn’t sound like you can hit the data used to construct the page in any other way ( i.e. direct link into DB, Web service, etc ) – if you could you wouldn’t be scraping web pages.
Even if you could do that, wouldn’t make much of a difference. You’re still going to have to compare what you have now with the data the remote service has. Absent some sort of push notification, you’re polling, and if you’re polling, yes, you have to check all the time.