#hacker-news-parser
Parses the insanely shitty html of hacker news comments into json

example
var hn = require('hacker-news-parser');
request("https://news.ycombinator.com/item?id=4992617", function(err, res) {
if(err) throw err;
var content = hn.parse(res.body);
console.log(content.comments);
});
api
hn.parse(html)
parses the html of a hacker news post
returns:
var result = {
comments: [comment],
more: moreLink
}
note: moreLink will be null if there is no 'more' link at the bottom
represents a single comment, accessible via the result returned from hn.parse
var comment = {
body:
date:
href:
comments: []
}
MoreLink
represents a link to the next page (if there is a next page), accessible via the result returned from hn.parse
var moreLink = {
href:
}
why?
Because hacker news has no public API, and the other modules did too much and/or didn't have test suites.