如何使用 Youtube Data API 查找 360° 视频 [英] How to find 360° videos using Youtube Data API

查看:32
本文介绍了如何使用 Youtube Data API 查找 360° 视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种使用 Youtube API 查找来自 Youtube 的所有 360° 视频的方法,以用于我的研究.目前,我无法从 Youtube API 中找到此功能,也无法使用可用的 API 函数破解变通方法.

I am looking for a way to find all of the 360° videos from Youtube using Youtube APIs for my research. Currently I haven't been able to find this feature from the Youtube APIs, or hack a work-around using available API functions.

优管网页搜索结果可以进行特征过滤,只显示搜索结果中的360°视频.即使使用可用的 API 方法复制此功能也是满足我需求的良好起点.也许这可以通过使用代码段的标签来完成,但我一直无法让它工作.

Search results on Yuotube webpage can be filtered by featureto just show the 360° videos among the search results. Even replicating this functionality using available API methods would be a good starting point to my needs. Maybe this could be accomplished by using snippet's tags, but I haven't been able to make it work.

(这个问题非常相似;-)到:使用 YouTube 数据 API 搜索 360 度视频?.但是这个问题在 8 个月后仍未得到解答,尽管 Google Youtube Data API 支持页面声明:我们支持 Stack Overflow 上的 YouTube Data API.Google 工程师使用 youtube-api、youtube-data-api 和 youtube 监控和回答问题-v3-api 标签."刚刚遇到这个问题,希望大家多多关注.)

(This question is quite similar ;-) to : Searching 360 degree videos using YouTube Data API? . But that question remains unanswered after 8 moths, even though Google Youtube Data API support page states: "We support the YouTube Data API on Stack Overflow. Google engineers monitor and answer questions with the youtube-api, youtube-data-api, and youtube-v3-api tags." As I just came across this problem, I hope the question gets some attention.)

推荐答案

我也一直在努力解决这个问题,并且使用了多种方法但效果有限:

I have been struggling with this problem as well and have used a combination of approaches with limited results:

首先,我们使用这种方法并为后续的新搜索添加一个publishedBefore过滤器(没有 pageToken) 我们找到的最旧结果.这使我们能够获得超过 1000 个 youtube 显然限制您的结果.

First, we use this method and add a publishedBefore filter for subsequent fresh searches (no pageToken) of the oldest result we have found. This enables us to get more than the 1000 results youtube apparently limits you to.

其次,我们为查询 #360Video 找到了很多很好的结果,我们对该字符串执行了 2 组搜索:videoDimension: '2d'videoDimension:'3d'.对于所有结果,我们查询它们的 contentDetails 并过滤掉那些 contentDetails.projection 不等于 '360' 的结果.为了更好地衡量,我们还进行了不带查询字符串的3d"维度搜索.

Second we found good lots of good results for the query #360Video, and we perform 2 sets of searches for that string: videoDimension: '2d' and videoDimension: '3d'. For all results, we query their contentDetails and make filter out those who's contentDetails.projection does not equal '360'. For good measure, we also do a '3d' dimension search without the query string.

最后,我们组合了我们检索到的所有结果集.不幸的是,我们似乎仍然错过了很多我们手工现场测试的视频.到目前为止,我们只查询了大约 1000 个视频.查找所有 360 度全景视频似乎需要大量手动工作.

Finally we combine all of the sets of results we retrieved. Unfortunately we do still seem to miss quite a few videos we spot test by hand. So far we have only been to query ~1000 videos. It seems like finding all 360 videos could require lots of manual work.

更新:我们采用了手动步骤,定期抓取包含许多 360 度全景视频的用户帐户、频道和播放列表.这至少产生了数百个视频,可以说质量更好.可能还有一个步骤,我们会检查每个视频的所有推荐"视频等等.

update: We have employed a manual step where we regularly scrape a list of user accounts, channels, and playlists with many 360 videos. This has yielded several hundred more videos at the least with, arguably, better quality. There might be a further step where we check all of the "recommended" videos for each of those videos and so on.

这篇关于如何使用 Youtube Data API 查找 360° 视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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