Skip to content

GraceDurham/Markov-Chains-and-Twitter

Repository files navigation

Markov-Chains-and-Twitter

Tweet random words from your favorite book. Pretty neat! I did Pride and Prejudice.

alt text

git clone https://github.com/GraceDurham/Markov-Chains-and-Twitter.git
cd Markov-Chains-and-Twitter

alt text

Create Keys and Access Tokens for Twitter API

alt text

alt text

Secrets file is not provided. In terminal please create a file called secrets.sh by doing touch secrets.sh

alt text

Create .gitignore file and add secrets.sh to it

alt text

Create and run virtual environment on command line

pip install virtualenv
virtualenv VENV
source venv/bin/activate

Install system dependancies

pip install -r requirements.txt

Run in terminal python markovsolution.py prideandprejudice.txt. If pride and prejudice is not your flavor you can choose a different text file in the respository

alt text

alt text

Check your twitter account and see the results!

alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages