Created
June 5, 2017 14:01
-
-
Save gnesher/d45495bfeec5e53bfb38da3270c93d23 to your computer and use it in GitHub Desktop.
cheerio question
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const $ = cheerio.load(body), | |
cards = $("div[class*=card__product___apps]") | |
cards.each((i, card) => { | |
console.log(card.children("div[class*=author__product___apps]").text); | |
console.log(card.children("a").attribs.href); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment