获取Twitter Replies的简易方法

近日twitter 看replies功能不能用,但是twitter api还是好的, 所以试着用python-twitter来看replies, 效果不错, 不知道python是什么的同学请忽略此帖

首先安装python-twitter, 最方便的做法可能是用easy_install

easy_install python-twitter

下面是代码

import twitter
def getTwitterReplies():
     api = twitter.Api(username='twitter用户名', password='twitter密码')
     replies = api.GetReplies()
     replies.reverse()
     for item in replies:
          print item.user.screen_name, ': ', item.text

我是放在ipython当中,直接输函数名就可以看到结果了

Google App Engine 发布

Google App Engine 北京时间今天正午发布,preview accounts(1万个)几分钟就被抢光了the powerful engine!

简单来说是一个python应用hosting 环境,GvR说了迟点会加入其他语言的支持

有兴趣的人可以先下载SDK

相关报道:
http://radar.oreilly.com/archives/2008/04/app-engine-host-your-python-apps-with-google.html

http://www.techcrunch.com/2008/04/07/google-jumps-head-first-into-web-services-with-google-app-engine/

Update:1点多的时候拿到了我的Google App Engine Account  :)

Joe Gregorio: Radical Simplicity: Lessons From Dynamic Languages

Joe Gregorio的一个关于python的演示Radical Simplicity: Lessons From Dynamic Languages, 很有意思

“Python为什么会有那么多Web Framework?”

“因为写一个太容易了”

接着给你演示一个花了3个小时60行代码完成的Web Framework robaccia
(当然, 少不了Kid, SQLAlchemy, Selector, WSGI的功劳)

看着不过瘾还可以看Joe的Blog: Why so many Python web frameworks

  1. Twitter Updates

  2. Recent Posts

  3. Categories

  4. Archives

  5. Books I'm reading