我正在尝试使用YouTube API返回属于选定的/特定的内容创建者的视频的详细信息-问题是,以下搜索会返回任何显示列出的用户名的视频(即使出现用户名)在评论中。
因此,简而言之,请尝试使搜索更具限制性/针对性。
这是我目前所拥有的:
channels = ['elrubiusOMG','VEGETTA777','WillyRex']
yt = YouTubeDataAPI(api_key)
def getVideos(channel):
return yt.search(channel,max_results=50)
for channel in channels:
channelVideos += getVideos(channel)