So there is a website that I must visit several times during different times of the day, to collect some basic information, the more times I visit it, the better. Some days I visit it as many as 20 times.
Let say this information is a number that is stored in a div, on a remote site, as follows:
<div class="importantInfo">24</div>
Assume, this HTML exists on some remote website with the following domain: http://www.somedomain.com.
Is it possible to create and execute JavaScript script on my local machine that navigates to http://www.somedomain.com and listen for an events on some remote website and acts accordingly on my local machine?
Something like (local JavaScript code):
var goTo = href('http://www.somedomain.com');
var num = goTo.('.importantInfo').text();
if(num > 10){
alert("GOOD");
}
I appreciate any suggestions.
Many thanks in advance!