- Log into Twitter and go to your settings
- Request your Twitter archive
- Download and unzip the archive file
- Put
tweets.csvin the same directory as this gist'spackage.jsonandmarkov-tweets.jsfiles - Run
npm installto install dependencies - Run
node markov-tweets.jsto generate some strings!
Running the script may take a few seconds depending on the size of your archive CSV. When it's done it will log out 20 random strings based on the Markov chain generated.