I am trying to scrape a player count on a website but my code keeps returning empty. What did I do wrong?
I'm trying to scrape this website: https://www.game-state.com/193.203.39.13:7777/ and the value I want to console.log is Players: x/1000
setInterval(function() {
var url = 'https://www.game-state.com/193.203.39.13:7777/';
request(url, function(err, response, body) {
var $ = cheerio.load(body);
var players = $('.value #players');
var playersText = players.text();
console.log(playersText);
})
}, 300)