Skip to content

Instantly share code, notes, and snippets.

@xbklairith
Last active September 24, 2016 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xbklairith/647c74149c7a4ecaed7587138deec328 to your computer and use it in GitHub Desktop.
Save xbklairith/647c74149c7a4ecaed7587138deec328 to your computer and use it in GitHub Desktop.
var parser = cheerio.load(html)
topic = {}
topic.title = parser('h2').text()
topic.story = parser('.display-post-story', '.main-post').text()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment