我正在开发我的第一个龙卷风项目,我有一些问题:
1-该项目的一部分是收集和分类来自不同 Twitter 用户的实时哈希标签和推文,并将它们放在我想要实时使用 iostream 的网站上结果是有库帮助我做到这一点以及如何使用它我找到了像 python-twitter 、 tweepy 这样的库,但我不知道什么是最好的,我对 twitter 有限的 api 很感兴趣,那么库/方法是什么 那? ...抱歉,但这也是我第一次使用 Twitter
2-我在龙卷风文档 UIModule 中找到了如何使用它,我不明白它有什么好处?
3-我有办法处理程序来渲染全局模板标签以在多个模板中使用吗?
4-我正在使用 MongoEngine ,它可以与龙卷风异步配合使用还是我必须使用 Asyncmongo ?
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 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)
我对此不太了解,但您可以在前端对 twitter 进行 AJAX 调用,或者执行如下操作: http://arstechnica.com/open-source/guides/2010/04/tutorial-use-twitters-new-real-time-stream-api-in-python.ars< /p>
UIModules 是网站的可重用部分,可以轻松插入到任何模板中。例如,您可以在博客中拥有一个帖子模块和一个评论模块,然后您可以在多个页面上重复使用它们。
不完全是。
使用
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
.