Pythonからtwitterへメッセージ送信

pythontwitter botを作ろうかと思い調査。

以下を参考に環境設定。
python-twitterまとめ 〜導入まで - はてブロ@ama_ch
http://dotred5.blogspot.com/2008/05/pythontwitter.html

以下のようにテスト送信プログラムを作成。

#-*- coding: utf-8 -*-
import twitter
api = twitter.Api("id","パスワード")
status = api.PostUpdate(u"Pythonからの送信テスト!")

実行。
ゆたかぁ@樽生 on Twitter: "Pythonからの送信テスト!"

あら簡単。
次回からは以下を参考にbotを作りたいと思います。
http://humming.via-kitchen.com/2008/05/17/python-twitte-bot/