H25.10.03 公開 普段Pythonは使わないのですが、なんとなく酒の肴にツイッターをだらだらと見たくなり、API解説書などを調べつつ書きました。 いやTwitter Search使えよって話ですが、いかんせんクリックなど必要になって面倒くさいのです。 おそらくpython-oauth2が必要になると思いますので、未導入の方はeasy_installを使うなりしてインストールしてください。 冬見さんのこのページが非常に参考(というかほぼ丸パクリですが)になりました。ありがたい限りです。 [Python][Twitter]python-oauth2でTwitterのStreaming APIに接続 http://d.hatena.ne.jp/fuyumi3/20111205/1323087002 #!/usr/local/bin/python # -*- coding:utf-8 -*