analogist / MarkovTweets

Simple Twitter bot that posts from a Markov chains generated text queue. Runs @KJVBlockchain.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MarkovTweets / KJVBlockchain

This is the (extremely simple) code underlying @KJVBlockchain - the "Markov chain bot trained on the King James Bible & various ICO whitepapers".

Markov chain requirements:

Run python3 kjvico_train.py to train and display tweets.

The repo contains the training corpus. These texts (KJV + ICOs) were originally obtained from:

The ICO whitepaper collection need to be converted from PDF using a tool such as pdftotext. Under the Debian/Ubuntu package ecosystem, this can be done with apt install poppler, followed by

find . -name "*.pdf" -execdir pdftotext {} {}.txt \;
cat $(find . -name "*.txt") > icos_all.txt

Crontab-based tweeting requirements:

About

Simple Twitter bot that posts from a Markov chains generated text queue. Runs @KJVBlockchain.


Languages

Language:Python 64.5%Language:Shell 35.5%