在 youtube api V3 上没有抓取精选频道的选项。
我想我们还需要等待 api v3 的更新。
我终于找到了 YouTube API V3 的解决方案!
如果您查看Channel 的文档,您可以看到参数:brandingSettings
特色频道位于brandingSettings 结果中。您只需要 YouTube 频道的 ID,而不是用户名。我制作了一个工具来查找带有名称的 频道 ID YouTube。
http://martialdidit.github.io/YoutubeID/
例如频道是:YouTubeHelp -> id:UCMDQxm7cUx3yXkfeHa5zJIQ
因此,使用此 ID 和部分 :brandingSettings 您可以找到特色频道。
以api's explorer 为例
结果:
"brandingSettings": {
"channel": {
"title": "YouTube Help",
"description": "Subscribe for tutorials, troubleshooting, and tips from the YouTube Help team! Check out the links below for more help.",
"keywords": "youtube help tutorials \"youtube help\" Hilfe Ayuda Aide ヘルプ 도움 Ajuda",
"moderateComments": true,
"showRelatedChannels": true,
"showBrowseView": true,
"featuredChannelsTitle": "Featured Channels",
"featuredChannelsUrls": [
"UCBR8-60-B28hp2BmDPdntcQ",
"UCUZHFZ9jIKrLroW8LcyJEQQ",
"UCeNZlh03MyUkjRlLFpVQxsg",
"UCkRfArvrzheW2E7b6SVT7vQ",
"UCEN58iXQg82TXgsDCjWqIkg",
"UCgNxLruwXS9fJNPztu5AVQA"
],
"unsubscribedTrailer": "MjHDKJuPjLs",
"profileColor": "#000000"
},
如果您查看表格:featuredChannelsUrls
每个 id 对应一个特色频道。使用 API V3 查找通道关联的名称。