来自 twitter、uimodules & 的龙卷风实时流异步数据库

发布于 2024-12-08 07:48:53 字数 390 浏览 9 评论 0 原文

我正在开发我的第一个龙卷风项目,我有一些问题:

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 ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

┈┾☆殇 2024-12-15 07:48:53
  1. 我对此不太了解,但您可以在前端对 twitter 进行 AJAX 调用,或者执行如下操作: http://arstechnica.com/open-source/guides/2010/04/tutorial-use-twitters-new-real-time-stream-api-in-python.ars< /p>

  2. UIModules 是网站的可重用部分,可以轻松插入到任何模板中。例如,您可以在博客中拥有一个帖子模块和一个评论模块,然后您可以在多个页面上重复使用它们。

  3. 不完全是。

  4. 使用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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文