const $ = cheerio.load(body) $('.tags a').each(function (index, item) { console.log(item); console.log(this); });