Skip to content
Markov Chain tweets derived from a corpus of Bernie Sanders and Donald Trump Speeches
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
bernbot.py
readme.md
requirements.txt
trump_corpus.txt
trump_corpus_copy.txt
twitter1.ini

readme.md

The Bernie Sanders and Donald Trump Twitter Bot

This was just a little play to get back into the game... The Glorius bot

Markov Chains

All credit for the hard math and understanding of Markov Chains goes to JSVINE/markovify.

To run on Digital Ocean or similar

  1. Python 3+ (It works on my machine :) )
  2. requirements.txt
  3. Change the #!(hashbang) in bernbot.py to denote the env you plan to use
  4. Type this inside the directory where bernbot lives: chmod +x bernbot.py
  5. To run as background process with Ubuntu: nohup /path/to/bernbot.py &
  6. To kill the process: pgrep bernbot.py make note of process ID kill <PID>
  7. You can cat nohup.out to see if you are generating a lot of errors
  8. Don't forget to put your Twitter creds into twitter1.ini

License

WTFPL

You can’t perform that action at this time.