且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

*** api 从精选频道模块中获取频道

更新时间:2023-02-21 10:01:52

*** api V3 上没有抓取精选频道的选项.我想我们还需要等待 api v3 的更新.

我终于找到了 *** API V3 的解决方案!

I finally found a solution with *** API V3 !

如果您查看 Channel 的文档,您会看到参数:brandingSettings

If you check the documentation of Channel you can see the parameter : brandingSettings

特色频道位于brandingSettings 结果中.您只需要 *** 频道的 ID,而不是用户名.我制作了一个工具来查找带有名称的 频道 ID ***.

The featured channels are in the brandingSettings results. All you need is the id for the *** channel, not the username. I made a tool to find the Id of a channel *** with the name.

http://martialdidit.github.io/***ID/

例如频道是:***Help -> id:UCMDQxm7cUx3yXkfeHa5zJIQ

For example, the channel is : ***Help -> id : UCMDQxm7cUx3yXkfeHa5zJIQ

因此,使用此 ID 和部分 :brandingSettings 您可以找到特色频道.

So with this ID and the part : brandingSettings you are able to find the featured channels.

api 的浏览器

结果:

  "brandingSettings": {
    "channel": {
     "title": "*** Help",
     "description": "Subscribe for tutorials, troubleshooting, and tips from the *** Help team! Check out the links below for more help.",
     "keywords": "*** help tutorials "*** 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 查找通道关联的名称.

Each id is corresponding to a featured channel. Use the API V3 to find the name of the channels associate.