Youtube API - 获取视频的热门评论
是否可以从视频中获取热门评论?也许按点赞数排序?
这是我当前的网址:
http://gdata.youtube.com/feeds/api/videos/'+yt_id+'/comments?alt=json-in-script&callback=?&max-results=50
提前致谢!
彼得
Is it possible to get the top comments from a video? Maybe sorted by number of thumbs up?
This is my current url:
http://gdata.youtube.com/feeds/api/videos/'+yt_id+'/comments?alt=json-in-script&callback=?&max-results=50
Thanks in advance!
Peter
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不幸的是,我认为没有这样的选择。你不能(或者我没有设法让它工作)按评论的评级、喜欢等排序,因为没有像“评级”等评论的gdata标签。 YouTube 目前尚未提供此功能。您可以投票此处
Unfortunately, i think there is no such option. You can´t (or i didn´t manage to get it working) order by rating, likes etc. of comment, because there is no gdata-tag like "rating" etc. for comments. YouTube doesn´t provide this so far. You can vote for it here
是的,我发现按相关性排序是一种很好的方法,例如在 JS 中:
Yes I found that sorting by relevance is a good way of doing this for example in JS: