This bot runs in the following ways.
Search tweets using
search_termin Twitter.Re-tweet the tweets.
In this example, search_term is Cafe Miyama,
and you can see how it behaves by checking the following account.
http://twitter.com/cafemiyamabot
Register your OAuth client on Twitter URL: http://twitter.com/oauth_clients NOTE: You MUST change permission settings to
Read & Writeif you wanna update via API. The default isRead Only.Run
python register_pin.pyand useCONSUMER_KEYandCONSUMER_SECRETyou got from the registeration. NOTE: Make sure you are now signing in Twitter as your Bot account when visiting a given URL.Change setting variables (
CONSUMER_KEYandCONSUMER_SECRET) inmain.pyto the given ones.Run Google App Engine dev_server and visit the following URL URL: http://localhost:8080/cron/update
- If you finish all of your setting, set
debug_flaginmain.pyoff.
- If you finish all of your setting, set
Done!
Enjoy developing your own twitter bot!
YasuLab yohei@yasulab.jp