/haikugrams

searching for those rarest of birds

Primary LanguagePython

haikugrams

searching for those rarest of birds

About:

you've seen haikubots on tumblr, you've seem anagram bots on twitter. I want to find haikus that are anagrams of eachother. help me out!

install

git clone https://github.com/abelsonlive/haikugrams.git

dependencies

git clone https://github.com/tumblr/pytumblr.git
cd pytumblr
sudo python setup.py install 
git clone https://github.com/tweepy/tweepy.git
cd tweepy
sudo python setup.py install 
sudo pip install nltk
python
>>> import nltk
>>> nltk.download()
>>> # select "cmudict" and "stopwords"

config:

haikugrams_tumblr.yml:

blog: <your_tumblr_account_name>
consumer_key: xxxxxxxxxxxxxxxxxxxxxx
consumer_secret: xxxxxxxxxxxxxxxxxxxxxx
oauth_token: xxxxxxxxxxxxxxxxxxxxxx
oauth_token_secret: xxxxxxxxxxxxxxxxxxxxxx

haikugrams_twitter.yml:

consumer_key: xxxxxxxxxxxxxxxxxxxxxx
consumer_secret: xxxxxxxxxxxxxxxxxxxxxx
access_token: xxxxxxxxxxxxxxxxxxxxxx
access_token_secret: xxxxxxxxxxxxxxxxxxxxxx

crontab

0,15,30,45 * * * * python <path_to_haikugrams_dir>/haikugrams.py