通过 Python 获取 Jabber 状态

发布于 2024-08-24 12:30:00 字数 200 浏览 5 评论 0原文

我正在使用 Django 框架开发一个网站,我需要检索用户的 Jabber(好吧,Google Talk)状态。大多数 Jabber python 库对于一个简单的任务来说似乎是令人难以置信的过度杀戮(和开销)。有什么简单的方法可以做到这一点吗?

我对 XMPP/Jabber 知之甚少,但我当然愿意学习。您是否需要成为经过身份验证的“好友”用户才能检索其他用户的状态?

I'm developing a website using the Django framework, and I need to retrieve Jabber (okay, Google Talk) statuses for a user. Most of the Jabber python libraries seem like an incredible amount of overkill (and overhead) for a simple task. Is there any simple way to do this?

I know very little about XMPP/Jabber, though of course I'm willing to learn. Do you need to be an authenticated and "friended" user to retrieve another user's status?

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

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

发布评论

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

评论(2

沩ん囻菔务 2024-08-31 12:30:00

您是否需要经过身份验证并
“好友”用户可检索另一个用户
用户的状态?

是的。

要获取给定用户的状态,您应该编写一个 jabber 机器人,并且用户应该将您的机器人添加为朋友。然后您就可以获得该用户的状态。 FriendFeed 和其他服务可以做到这一点。

Google Buzz 来自 Google,因此他们已经可以访问您的聊天状态...

Do you need to be an authenticated and
"friended" user to retrieve another
user's status?

Yes.

To get the status of a given user, you should write a jabber bot and the user should add your bot as a friend. Then you would be able to get the status of that user. FriendFeed and other services do that.

Google Buzz is from Google, so they already have access to your chat status...

回忆躺在深渊里 2024-08-31 12:30:00

我建议您查看 Google AppEngine 的 XMPP API(Django 也在 AppEngine 上运行) )。 AFAIK 您必须获得授权才能检查用户的状态。

I recommend checking out Google AppEngine's XMPP API (Django runs on AppEngine, too). AFAIK you have to be authorized to check a user's status.

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