首页 > Operation System > 在google app engine上用birdnest搭了个twitter proxy

在google app engine上用birdnest搭了个twitter proxy

2009年10月14日 哈哈 发表评论 阅读评论

rt
是可忍孰不可忍
终于出手了
首先

wget http://googleappengine.googlecode.com/files/google_appengine_1.2.0.zip
unzip -x google_appengine_1.2.0.zip

这是下载、安装google app engine for python的sdk
然后

cd google_appengine
svn checkout http://birdnest.googlecode.com/svn/branches/gae gae

这个是从birdnest官网上check out出来gae分支的代码
还有种说法是
svn checkout http://birdnest.googlecode.com/svn/trunk/ birdnest-read-only
但有人说一定要gae分支,否则有问题,所以我这里就是用的gae分支
接着

vim gae/app.yaml

将第一行的application: nest改成application: xxxxxxx
其中xxxxxx是你在google app engine上新建的app_id
可以用http://xxxxxx.appspot.com访问你的app
最后

./appcfg.py update gae

将应用上传到gae(google app engine)
至此
birdnest在你的google app engine上就搭好了
测试下

http://xxxxxx.appspot.com能访问(假设你的app_id是xxxxxx)

http://xxxxxx.appspot.com/api/能出现twitter的主页(假设你的app_id是xxxxxx)

就成功了

我在我的adp1(android develop phone 1)上用twidroid的时候
开始老不行
后来才发现原来是api的url地址写错了
写成xxxxxx.appspot.com/api了
我改成xxxxxx.appspot.com/api/就好了

终于翻墙上来了

原创文章,转载请注明: 转载自嘻嘻哈哈的部落格(blog)

本文链接地址: 在google app engine上用birdnest搭了个twitter proxy

  1. liang
    2009年10月17日14:11 | #1

    我这边api打开正常,但是登录之后还是转到twitter.com/sessions,结果还是要撞墙,怎么回事呢

  2. 2009年10月25日15:17 | #2

    你不会直接在/api/出来的twitter页面上直接登录吧
    这样肯定不行的呀
    这里/api/出来twitter的首页只是表明你的birdnest搭好了
    你要正确使用这个
    还需要有支持设置proxy api的twitter客户端才行啊

  1. 本文目前尚无任何 trackbacks 和 pingbacks.

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word