Google App Engine for PythonでTwitter bot作りたいなーといつしか言っていたのを思い出したので、最近取り組んでます。 GAEもしばらく触ってなかったので、こういった連載を見ながら、コードを読んでみてたり。 ASCII.jp:サンプルコードで分かるGAE&Twitter API開発|Twitter&Google App Engineで始めるWebプログラミング入門 読んでみると初めて見たコードがありました。 このサンプルでは、用意してあるURLの各処理をある程度一つのクラスにまとめて処理するそうで、指定したURLの末尾にある単語などを検出して処理しているとか。例えばこれです。 class MainHandler(webapp.RequestHandler): #------------------------------------------------