i was trying to do some web scraping and i found a problem, i have this JS script:
const request = require('request');
const cheerio = require('cheerio');
const url = 'https://www.sisal.it/scommesse-matchpoint?filtro=0&schede=man:1:21' // this is an
italian betting site
request( url, (error, response, html) => {
if (!error && response.statusCode == 200) {
const $ = cheerio.load(html);
let squadre = $("div");
console.log(squadre.text())
}
})
This returns me a very long string with all the web site's divs text but in this string there isn't the text i want. I made this script because after doing:
const $("div.*class*")
It returned me nothing even if the selectors were correct, do you have any ideas on why i can't select the divs i want?