How to programmatically find out what channels are part of a given YouTube network?

后端 未结 2 1236
生来不讨喜
生来不讨喜 2020-12-31 14:43

Looks like there is no official YouTube API to find list of YouTube networks or what channels are part of a given network. Any ideas how to find that information?

If

2条回答
  •  我在风中等你
    2020-12-31 14:54

    I don't know if this is the way sites such as socialblade or channelmeter get the networked channels. But this is the way i did it.

    Say i visit this video link: http://www.youtube.com/watch?v=_8AZT40gH5E

    In the meta tags information of a networked channel, there is an attribute (As example) which actually specifies the network that channel belongs to. So what i did was one video from the channel i'm working with, and use a small function like this:

    $tags = get_meta_tags("http://www.youtube.com/watch?v=_8AZT40gH5E");
    echo $network = $tags['attribution'];
    

    And you have the Network the channel is associated with.

提交回复
热议问题