YouTube API 未提供准确的视频结果 [英] YouTube API is not giving accurate video results

查看:24
本文介绍了YouTube API 未提供准确的视频结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  1. 在结果中获取视频,即使它与查询参数 (q) 不匹配

  1. Getting video in the results even though it didn't match query parameter(q)

我传递的参数在正文、标题、标签中不存在,但视频是相关的.API 是否查看视频的任何其他元数据.

The parameter i passed didn't exists in body,title,tags, But the video is relavant. Is API looks any other metadata of video.

例如:我已将参数指定为移动",此视频 https://www.youtube.com/watch?v=j8UNo3vRIB0 即将到来,这里的视频标题和描述不包含手机参数

For Example: i have given parameter as "mobile", this video https://www.youtube.com/watch?v=j8UNo3vRIB0 is coming as result, here video title and description not contain mobile as parameter

最新数据在 youtube api 中不一致

Latest data not coming consistently in youtube api

有时最新数据不会出现在 youtube 数据 api 中.

Some times latest data not coming in youtube data api.

例如:我已将规则指定为亚马逊".此视频 https://www.youtube.com/watch?v=6zygd1iW-f4 显示在 youtube 网站的最新视频中,但未出现在 youtube api 结果中.

For Example: i have given rule as "amazon". This video https://www.youtube.com/watch?v=6zygd1iW-f4 is showing in youtube website's latest videos but not coming in youtube api result.

示例查询:https://www.googleapis.com/youtube/v3/search?part=snippet&order=date&q=amazon&maxResults=50&type=video&key=xyz

推荐答案

W.r.t.第 (1) 点,Youtube 运行正常,因为该视频的内容与关键字 mobile 相关(请观看该视频的前几分钟说服自己).

W.r.t. point (1), Youtube is working OK, since the content of that video is related to the keyword mobile (please convince yourself by watching the first couple of minutes of that video).

对于您的观点 (2),我无论如何都无法让 Youtube 网站在其搜索结果集顶部附近为查询词 生成视频 6zygd1iW-f4亚马逊.

For what concerns your point (2), I cannot in any way make the Youtube site to produce the video 6zygd1iW-f4 near the top of its search result set for the query term amazon.

总而言之,我认为您的上述主张是不可持续的.

All in all, I deem your claims above unsustainable.

请注意,当使用像您这样的通用术语进行查询时,您不能期望从 Youtube 获得清晰的结果.人们不应该期望 Youtube 的搜索功能与在单个计算机存储的数据库中进行全文搜索类似.在 Youtube 上查询宽泛的术语总是会有一定程度的模糊性.

Please note that one cannot expect crisp results from Youtube when queried with such general terms as yours is. One should not expect Youtube's searching feature to work similarly to say a full-text search in single computer-stored database. There will always be a degree of fuzziness associated to querying Youtube for broad terms.

这篇关于YouTube API 未提供准确的视频结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆