通过GAE将twitter同步到新浪微博/饭否等平台
虽然很早就有新浪微博的帐号,但是由于一直对墙内的微博没什么好感,就一直没有使用。但是考虑到我在twitter上发的tweets也没啥敏感的信息,如果可以同步到新浪微博也是个不错的选择。 既然要同步tweets,就不得不用到灰常强大的Google App Engine(GAE)了。 首先需要在GAE创建一个新的应用 appid.appspot.com 获得twitter-feed svn co http://twitter-feed.googlecode.com/svn/trunk/ 然后对其进行修改: 修改app.yaml文件,将其中的application:一项修改为自己创建的appid 修改cron.yaml文件,设定同步的时间间隔,比如设置为schedule: every 1 minutes,就可以每隔一分钟同步一次 修改feed.py文件,在约第22行,设置username为自己想要同步的twitter ID 修改twitter.py文件,在约第70行,找到"http://api.t.sina.com.cn/statuses/update.xml?source=App_Key",将其中的App_Key替换为自己在新浪申请到的App_Key 修改twitter.py文件,在“# You MUST modify your username and password here”下面填入想要同步的各平台的帐号和密码,并删除前面的#注释符号 修改twitter.py文件,在“# You …