- Log into Twitter and go to your settings
- Request your Twitter archive
- Download and unzip the archive file
- Put
tweets.csv
in the same directory as this gist'spackage.json
andmarkov-tweets.js
files - Run
npm install
to install dependencies - Run
node markov-tweets.js
to 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.