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 ?
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
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.
Not really.
Use
asyncmongo
.
精彩评论