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