def get_twits():
user='web2py'
import gluon.tools
import gluon.contrib.simplejson as sj
page = gluon.tools.fetch('http://twitter.com/%s?format=json' % user)
tweets=XML(sj.loads(page)['#timeline'])
return dict(tweets=tweets)
I'm wondering how can we limit this query for last 10 tweets...
Anybody has a clue?
Thanks!
--
Linux User #387870
.........____
.... _/_õ|__|
..º[ .-.___.-._| . . . .
.__( o)__( o).:_______
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.