Skip to content

abelsonlive/haikugrams

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 

About

searching for those rarest of birds

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages