PythonでTwitterのAPIを利用するとき、これまではtweepyを使っていました。 しかしtweepyはまだTwitter API 1.1に対応していないようなので、今回はすでに対応しているtwythonを使用します。 今回のOSはCentOS 6.3です。 pipやeasy_installでインストールできます。 $ sudo pip install twython or $ sudo easy_install twython 使い方は非常に簡単です。 #!/usr/bin/env python # -*- coding: utf-8 -*- from twython import Twython twitter = Twython(app_key=CONSUMER_KEY, app_secret=CONSUMER_SECRET, oauth_token=ACCESS_TOKE