I'm trying to run a simple cheerio scraping script here:
var $ = cheerio.load(body);
var scoresTable = $('.grey').html();
var scoresTableTbody = scoresTable('tbody');
console.log(scoresTableTbody);
But the return is:
scoresTable is not a function
I also tried changing var scoresTable = $('.grey').html();
into var scoresTable = $('.grey');
, but same error.
Appreciate any help :)