• <i id='QadBB'><tr id='QadBB'><dt id='QadBB'><q id='QadBB'><span id='QadBB'><b id='QadBB'><form id='QadBB'><ins id='QadBB'></ins><ul id='QadBB'></ul><sub id='QadBB'></sub></form><legend id='QadBB'></legend><bdo id='QadBB'><pre id='QadBB'><center id='QadBB'></center></pre></bdo></b><th id='QadBB'></th></span></q></dt></tr></i><div id='QadBB'><tfoot id='QadBB'></tfoot><dl id='QadBB'><fieldset id='QadBB'></fieldset></dl></div>

        <bdo id='QadBB'></bdo><ul id='QadBB'></ul>

        <small id='QadBB'></small><noframes id='QadBB'>

      1. <tfoot id='QadBB'></tfoot>

      2. <legend id='QadBB'><style id='QadBB'><dir id='QadBB'><q id='QadBB'></q></dir></style></legend>

        YouTube API v3 apiclient.errors.HttpError“未选择过滤器."- 我在哪

        时间:2023-09-02

            <small id='VxxPD'></small><noframes id='VxxPD'>

                  <tbody id='VxxPD'></tbody>
                <legend id='VxxPD'><style id='VxxPD'><dir id='VxxPD'><q id='VxxPD'></q></dir></style></legend>

              1. <tfoot id='VxxPD'></tfoot>
                • <bdo id='VxxPD'></bdo><ul id='VxxPD'></ul>
                  <i id='VxxPD'><tr id='VxxPD'><dt id='VxxPD'><q id='VxxPD'><span id='VxxPD'><b id='VxxPD'><form id='VxxPD'><ins id='VxxPD'></ins><ul id='VxxPD'></ul><sub id='VxxPD'></sub></form><legend id='VxxPD'></legend><bdo id='VxxPD'><pre id='VxxPD'><center id='VxxPD'></center></pre></bdo></b><th id='VxxPD'></th></span></q></dt></tr></i><div id='VxxPD'><tfoot id='VxxPD'></tfoot><dl id='VxxPD'><fieldset id='VxxPD'></fieldset></dl></div>

                  本文介绍了YouTube API v3 apiclient.errors.HttpError“未选择过滤器."- 我在哪里选择过滤器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我第一次尝试为 YouTube 设置 Google apiclient,并按照我所做的文档作为测试(没有找到 YouTube API 的具体示例):

                  My first attempt at setting up the Google apiclient for YouTube and by following the docs I made this as a test (didn't find a specific example for the YouTube API):

                  import json
                  from apiclient.discovery import build
                  service = build('youtube', 'v3', developerKey = 'tralalala')
                  videos = service.videos()
                  request = videos.list(part = '7lCDEYXw3mM') # some video id
                  response = request.execute()
                  json.dumps(response, sort_keys = True, indent = 4)
                  

                  我明白了

                  {
                   "error": {
                    "errors": [
                     {
                      "domain": "youtube.parameter",
                      "reason": "missingRequiredParameter",
                      "message": "No filter selected.",
                      "locationType": "parameter",
                      "location": ""
                     }
                    ],
                    "code": 400,
                    "message": "No filter selected."
                   }
                  }
                  

                  显然我缺少这个 filter,但我似乎无法在文档 google-api-client-libraries.appspot.com.我的意图是通过提供其 id 来获取视频详细信息.

                  Obviously I'm missing this filter, but I can't seem to find it anywhere in the docs google-api-client-libraries.appspot.com. My intent is to fetch a videos details by providing its id.

                  推荐答案

                  您至少需要一个选择器才能列出.id"就是其中之一.您可以随时查看 YouTube API 示例 项目以供参考.这是 Python 列表用法在一个例子中.

                  You need at least one selector to list. 'id' is one of them. You can always check YouTube API Samples project for reference. Here's a Python list usage in one of examples.

                  这篇关于YouTube API v3 apiclient.errors.HttpError“未选择过滤器."- 我在哪里选择过滤器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:无法在 python 中使用 youtube API v3 下载视频字幕 下一篇:YouTube API v3 返回截断的观看记录

                  相关文章

                    <i id='QQfF2'><tr id='QQfF2'><dt id='QQfF2'><q id='QQfF2'><span id='QQfF2'><b id='QQfF2'><form id='QQfF2'><ins id='QQfF2'></ins><ul id='QQfF2'></ul><sub id='QQfF2'></sub></form><legend id='QQfF2'></legend><bdo id='QQfF2'><pre id='QQfF2'><center id='QQfF2'></center></pre></bdo></b><th id='QQfF2'></th></span></q></dt></tr></i><div id='QQfF2'><tfoot id='QQfF2'></tfoot><dl id='QQfF2'><fieldset id='QQfF2'></fieldset></dl></div>

                      <tfoot id='QQfF2'></tfoot>

                      <small id='QQfF2'></small><noframes id='QQfF2'>

                      • <bdo id='QQfF2'></bdo><ul id='QQfF2'></ul>

                      <legend id='QQfF2'><style id='QQfF2'><dir id='QQfF2'><q id='QQfF2'></q></dir></style></legend>