在不同的 youtube 视频上查找与查询匹配的所有文档
Find all comments matching a query on different youtbue videos
我知道可以 list comments 获取 youtbue 上的单个视频,但是否可以找到与查询匹配的 youtbue 数据 api v3 上的所有评论?
例如,如果我搜索 "BMW",我会找到所有关于包含 "BMW" 的不同视频的评论。如果不支持,有什么解决方法?
我正在使用 python。
Comments: list
Returns a list of comments that match the API
request parameters.
有一个过滤器参数,它将 return 唯一的某些评论 ID,(不知道为什么要这样做)
id string
The id parameter specifies a comma-separated list of
comment IDs for the resources that are being retrieved. In a comment
resource, the id property specifies the comment's ID.
对于允许您进行字符串搜索的 Google 方法(这就是我认为您正在寻找的),参数通常是 q。
search.list 有这个选项,你可以按文本字符串搜索视频,Google 驱动器 file.list 也有这个选项,你可以搜索以名称或类型开头的文件。
回答:通过查看文档我们可以看到,不可能在 YouTube 数据 API v3 上找到所有与字符串查询匹配的评论。
我知道可以 list comments 获取 youtbue 上的单个视频,但是否可以找到与查询匹配的 youtbue 数据 api v3 上的所有评论?
例如,如果我搜索 "BMW",我会找到所有关于包含 "BMW" 的不同视频的评论。如果不支持,有什么解决方法?
我正在使用 python。
Comments: list
Returns a list of comments that match the API request parameters.
有一个过滤器参数,它将 return 唯一的某些评论 ID,(不知道为什么要这样做)
id string
The id parameter specifies a comma-separated list of comment IDs for the resources that are being retrieved. In a comment resource, the id property specifies the comment's ID.
对于允许您进行字符串搜索的 Google 方法(这就是我认为您正在寻找的),参数通常是 q。
search.list 有这个选项,你可以按文本字符串搜索视频,Google 驱动器 file.list 也有这个选项,你可以搜索以名称或类型开头的文件。
回答:通过查看文档我们可以看到,不可能在 YouTube 数据 API v3 上找到所有与字符串查询匹配的评论。