ずっと使ってなかったここを使うか。 Pythonの練習をかねて、Twitterのダイレクトメッセージを受け取り、Wikipediaを調べて返信するロボットユーザを作ってみました。下にソースを載せます。 Python2.4+elementtree or Python2.5で動いてます。 実際のロボットはこちら。 http://twitter.com/twipediajp 使うには、上のユーザをaddした後、反対にaddされるのを待ってください。add通知が来たら「d twipediajp 調べたい言葉」のようにDMを送信します。 http://wikipedia.simpleapi.net/を利用しています。過負荷にならないよう、1分に30回までにしてローカルにキャッシュもしています。 思ったこと。 DMのやりとりをするには互いにaddしてないといけない。addされた時に自動でaddしかえす