Skip to content

Instantly share code, notes, and snippets.

@edvinasbartkus
Last active August 29, 2015 13:56
Show Gist options
  • Save edvinasbartkus/8942826 to your computer and use it in GitHub Desktop.
Save edvinasbartkus/8942826 to your computer and use it in GitHub Desktop.
new Parse('https://news.ycombinator.com/item?id=7216471', function () {
var comments = [];
when('class', 'comment', function () {
var comment = {};
comments.push(comment);
whenText(function (text) {
if (text != 'reply') {
comment.text = (comment.text || '') + text;
}
});
});
done(function () {
console.log(comments);
process.exit(0);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment