- Create a GAE application named ‘<xxx>-proxy’;
@ https://appengine.google.com - Download the GAE SDK and then unzip it;
@ https://code.google.com/appengine/downloads.html - svn checkout http://mirrorrr.googlecode.com/svn/trunk/ <xxx>-proxy
- Change application name to ‘<xxx>-proxy’ and version to ‘1’ in app.yaml file
- Delete index.yaml file
- appcfg.py update xxx-proxy
自己建一个是好习惯,表老抢别人的流量用,霍霍~~~
Updated: Steps to install Birdnest to GAE
- Create a GAE application named ‘<xxx>-twitter’;
@ https://appengine.google.com - Download the GAE SDK and then unzip it;
@ https://code.google.com/appengine/downloads.html - svn checkout http://birdnest.googlecode.com/svn/branches/gae/
DO NOT USE TRUNK - Change application name to ‘<xxx>-twitter ‘ in app.yaml file
- Remove the following codes from code.py file.
import socket
import re
ua = web.ctx.environ.get(“HTTP_USER_AGENT”, ‘None’)
if ua.find(‘jibjib) >= 0:
socket.setdefaulttimeout(60)
elif ua.find(‘zh-CN’) >= 0:
#raise Exception(‘unknown error’)
socket.setdefaulttimeout(2)
else:
socket.setdefaulttimeout(2) - appcfg.py update xxx-twitter