【发布时间】:2014-03-07 05:38:13
【问题描述】:
我想在频道列表中搜索 youtube 视频。在下面的代码中,我只能将一个“Channelid”传递给 youtube api。有没有办法传递多个频道 ID ??
def youtube_search(options):
youtube = build(YOUTUBE_API_SERVICE_NAME, YOUTUBE_API_VERSION,
developerKey=DEVELOPER_KEY)
# Call the search.list method to retrieve results matching the specified
# query term.
search_response = youtube.search().list(
q=options.q,
part="id,snippet",
maxResults=options.max_results,
channelId=options.channelId
).execute()
【问题讨论】:
-
你找到解决办法了吗?
标签: python youtube youtube-api youtube-channels