pythonとgaeの練習
以下ちょー書きかけ
1.必要なものをそろえます。
sudo apt-get install python
# ソースを持ってくるので入れとく
sudo apt-get install mercurial
# buildするとき使った気がする
sudo apt-get install python-setuptools
# oauth2のライブラリを取得(たぶん必要な気がする
git clone https://github.com/dgouldin/python-oauth2.git
cd python-oauth2
python setup.py build
# httplib2(これも必要だったような・・・
# python-twitterのoauth2対応版を取得(たぶんdefaultが最新?)
# mercurialが詳しくわからん。
hg clone http://python-twitter.googlecode.com/hg/ python-twitter
cd python-twitter
hg update default
python setup.py build
2.twitterのアカウントを作成
適当に作って、アプリケーションを作って、アクセストークンをメモってくる。
アクセストークンの取得
Twitter Applications | dev.twitter.com
3.botを作る。
がんばる
参考
python-twitter – Project Hosting on Google Code


0 Comments.