gpt4 book ai didi

c# - 列出 youtube 上的所有视频

转载 作者:太空狗 更新时间:2023-10-30 00:11:14 25 4
gpt4 key购买 nike

我正在寻找一种方法来列出 youtube 上的每个视频。你有什么想法吗?

YouTubeQuery query = new YouTubeQuery(YouTubeQuery.DefaultVideoUri);
query.Query = ""; //<-Research key//
query.OrderBy = "viewCount";
query.SafeSearch = YouTubeQuery.SafeSearchValues.None;

Feed<Video> videoFeed = request.Get<Video>(query);

这样,youtube 只返回 1.000.000 的结果。

最佳答案

来自 Youtube Api 页面;

The tag has a maximum value of 1,000,000. As such, if the tag value is 1,000,000, you can be sure that there are not exactly one million results but rather that there are so many matches that we just stopped counting. In addition, the maximum value for this tag is 1,000,000.

关于c# - 列出 youtube 上的所有视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14378420/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com