开发者

tornado realtime stream from twitter, uimodules & async db

I'm working on my first tornado project and i have some questions :

1- apart of the project is collecting and categorize real time hash-tags and tweets form different twitter users is and put them on the website I want ti use iostream for realtime results is there libraries helping me to do that and how to use it I found libs like python-twitter , tweepy but I don't know what is the best and I red about twitter limited api so what is library / way to do that? ... sorry but It's my first time开发者_如何学Go to work with twitter too

2- I found in tornado documentation UIModule how to use it I didn't understand what the benefit of it ?

3- I there way to handler to render global template tags to use in more than template ?

4- I'm using MongoEngine will it work with tornado asynchronous or I have to use Asyncmongo ?


  1. I don't know much about this one, but you could either to AJAX calls to twitter on the frontend, or do something like this: http://arstechnica.com/open-source/guides/2010/04/tutorial-use-twitters-new-real-time-stream-api-in-python.ars

  2. UIModules are reusable parts of a site which can be easily inserted into any template. E.g, you could have a post module and a comment module in a blog, which you could then reuse on multiple pages.

  3. Not really.

  4. Use asyncmongo.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜