andrew-d / MarkovHN

Markov generator for HN. You probably don't want to use this.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The HN Markov Generator

Inspired by this tweet, I created a simple Markov generator and a scraper for a user's HN comments. Deliberately left out so I don't get yelled at: the bot that posts these comments to HN.

Comment data from tptacek and patio11 are included :-)

Usage

python extract.py username > username.json
python markov.py username.json 100 Starting word

You need Python and some requirements installed. Do this:

virtualenv markov
. ./markov/bin/activate
pip install -r requirements.txt

License

WTFPL

About

Markov generator for HN. You probably don't want to use this.