有没有办法从嗡嗡声中提取评论?
现在有办法获取评论吗?我知道 API 尚未完全发布,但我想知道是否有人找到了从嗡嗡声中获取评论的方法。
请注意,我正在谈论评论和(不是)状态消息。
(例如,我在嗡嗡声上发布了一些内容,有 10 个人对其发表了评论,我不想只获得嗡嗡声状态消息,但我想要其他人对我的状态消息的 10 条评论)
如果您需要更多解释,请告诉我我将编辑这篇文章
(这显然不是作业)
Is there a way to get the comments from buzz right now? I understand that the API is not fully out but i was wondering if anyone found a way to get comments from buzz.
Please notice that i am talking about comments and (NOT) status messages.
(Example, i publish something on buzz, 10 people comment on it, i don't want to get the buzz status message only but i want to the 10 comments other people had on my status message)
If you need more explanations please tell me and i will edit the post
(this is clearly not a homework)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
此功能记录如下:http://code.google.com /apis/buzz/v1/using_rest.html#activity-comments
基本上,您发出 HTTP 请求:https://www.googleapis.com/buzz/v1/activities/userId/@self/activityId/@comments
This capability is documented here: http://code.google.com/apis/buzz/v1/using_rest.html#activity-comments
Basically you make an HTTP request for: https://www.googleapis.com/buzz/v1/activities/userId/@self/activityId/@comments
每个状态更新的评论都有一个 RSS 提要。在个人状态更新中,单击向下箭头并选择“链接到此帖子”。然后单击浏览器地址栏中的橙色 RSS 图标。或者,如果您知道帖子 ID 和用户 ID,请将其插入此处 - http://buzz.googleapis。 com/feeds/{用户 ID}/评论/{帖子 ID}。这是该更新评论的 RSS 提要。用 PHP 或任何其他语言解析 feed 就可以了。
为了更加自动化,请为用户获取主要 RSS 提要 (http://buzz.googleapis.com/ feeds/{user id}/public/posted),然后您可以解析每个帖子的帖子 ID,并从中构建评论提要 URL (http://buzz.googleapis.com/feeds/{用户 ID}/comments/{帖子 ID})。
There is an RSS feed for the comments for each status update. On an individual status update, click the down arrow and select "Link to this post". Then click the orange RSS icon in the browsers address bar. Or, if you know the post id and user id, plug it into here - http://buzz.googleapis.com/feeds/{user id}/comments/{post id}. That is the RSS feed for the comments for that update. Parse the feed in PHP or any other language and there you go.
For a little more automation, take the main RSS feed for the user (http://buzz.googleapis.com/feeds/{user id}/public/posted), then you can parse out the post id for each post and build the comments feed url from that (http://buzz.googleapis.com/feeds/{user id}/comments/{post id}).