>> def get_twits():

Just for fun...

Definitions:
  Get_Twits = Obtain fools or idiots
  Get_Tweets = Obtain micro-blog posts (of less than 140 chars)

Conclusion:  as you managed to attract a reply from me,  your chosen
function name is indeed correct!!

Best wishes,
-David

On Dec 20, 8:28 pm, Tito Garrido <titogarr...@gmail.com> wrote:
> 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 web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to