Hejka, wie ktoś może czemu mi nie chce consola pokazać pobranego przeze mnie tekstu? Próbuję na wiele sposób i robię dobrze, a ciagle mam albo null albo nic w outpucie.
const rp = require('request-promise')
const cheerio = require('cheerio')
rp(`https://osu.ppy.sh/beatmapsets?sort=nominations_desc&s=pending#`)
.then((html) => {
var $ = cheerio.load(html);
$('div.beatmapsets__items-row:nth-child(1)').each(function() {
var artist = $(this).find('div.beatmapset-panel__header-text').text();
console.log(artist)
})
})
.catch(console.error.bind(console));