Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
searching for those rarest of birds
Branch: master

This branch is even with abelsonlive:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.md
duplicated_haikus.json
haikugrams.json
haikugrams.py
haikus.json

README.md

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 

tumblr

twitter

Something went wrong with that request. Please try again.