1. You can download the dataset using http://hn.algolia.com/api. Mind the rate-limits, though.
2. This has already been done quite a few times by various apps, most prominently here: http://algorithmia.com/demo/hn (http://blog.algorithmia.com/post/86295023534/algorithmic-tag...)