Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 73905

Web scraping, i can't select the tags that i want

$
0
0

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?


Viewing all articles
Browse latest Browse all 73905

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>