{"id":791,"date":"2017-08-16T22:25:59","date_gmt":"2017-08-16T13:25:59","guid":{"rendered":"https:\/\/pandanote.info\/?p=791"},"modified":"2020-12-31T17:44:27","modified_gmt":"2020-12-31T08:44:27","slug":"google-api-python-client%e3%81%a8python3%e3%81%a7%e3%81%a1%e3%82%87%e3%81%a3%e3%81%a8%e9%81%8a%e3%82%93%e3%81%a7%e3%81%bf%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/pandanote.info\/?p=791","title":{"rendered":"\u3010\u30b3\u30fc\u30c9\u4f8b\u3092\u66f4\u65b0\u3057\u307e\u3057\u305f\u3002\u3011google-api-python-client\u3068Python3\u3067\u3061\u3087\u3063\u3068\u904a\u3093\u3067\u307f\u308b\u3002"},"content":{"rendered":"<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p>google-api-python-client\u304cVersion 1.6.2\u4ee5\u964d\u3067Python3\u306b\u5bfe\u5fdc\u3057\u305f\u3088\u3046\u306a\u306e\u3067\u3001\u3053\u3044\u3064\u3092\u4f7f\u3063\u3066Fedora 26\u4e0a\u3067YouTube Data API v3\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u52d5\u304b\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u306e\u985b\u672b\u3092\u66f8\u3044\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>[2018\/9\/23\u8ffd\u8a18] \u7d9a\u7de8\u306e\u3088\u3046\u306a\u3082\u306e\u3092\u66f8\u304d\u307e\u3057\u305f\u3002\u8a73\u3057\u304f\u306f\u300c\u307e\u3068\u3081\u300d\u306e\u7bc0\u3092\u53c2\u7167\u3057\u3066\u3044\u305f\u3060\u3051\u308b\u3068\u5e78\u3044\u3067\u3059\u3002<\/p>\n<h2>\u4e8b\u524d\u6e96\u5099<\/h2>\n<h3>API\u30ad\u30fc\u306a\u3069\u306e\u53d6\u5f97<\/h3>\n<p>API\u30ad\u30fc\u3084OAuth2.0\u8a8d\u8a3c\u306e\u305f\u3081\u306b\u5fc5\u8981\u306a\u60c5\u5831\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306fOAuth2.0\u8a8d\u8a3c\u306e\u307f\u3092\u4f7f\u7528\u3057\u307e\u3059\u306e\u3067\u3001OAuth2.0\u8a8d\u8a3c\u306e\u305f\u3081\u306e\u624b\u9806\u306e\u307f\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<p>OAuth2.0\u8a8d\u8a3c\u306e\u305f\u3081\u306e\u60c5\u5831\u306f\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li>https:\/\/console.developer.google.com\/ \u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u300cOAuth\u540c\u610f\u753b\u9762\u300d\u3067\u5fc5\u8981\u4e8b\u9805\u3092\u5165\u529b\u3057\u3066\u8a8d\u8a3c\u60c5\u5831\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/li>\n<li>OAuth\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u4eca\u56de\u306fPython3\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u3067\u3059\u306e\u3067\u3001\u305d\u306e\u4ed6\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u7528\u306e\u3082\u306e\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/li>\n<li>OAuth\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u3092\u4f5c\u6210\u3057\u305f\u3089\u3001\u4e0b\u56f3\u306e\u8d64\u77e2\u5370\u306e\u30ea\u30f3\u30af(\u300cJSON\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u300d)\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u4f7f\u7528\u3059\u308b\u305f\u3081\u306eJSON\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\u306a\u304a\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u5f8c\u306b\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089\u8aad\u307f\u8fbc\u307f\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3092client_secrets.json\u306b\u5909\u66f4\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-797\" src=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2017\/08\/google-api-oauth-screenshot2-300x198.png\" alt=\"\" width=\"300\" height=\"198\" srcset=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2017\/08\/google-api-oauth-screenshot2-300x198.png 300w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2017\/08\/google-api-oauth-screenshot2-768x508.png 768w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2017\/08\/google-api-oauth-screenshot2-1024x677.png 1024w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2017\/08\/google-api-oauth-screenshot2-660x437.png 660w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2017\/08\/google-api-oauth-screenshot2.png 1031w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>\n<\/li>\n<\/ol>\n<h3>google-api-python-client\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>root\u6a29\u9650\u3067\u3001\u30b7\u30a7\u30eb\u30d7\u30ed\u30f3\u30d7\u30c8\u304b\u3089\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001google-api-python-client\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<div class=\"code\">$ pip3 install google-api-python-client<\/div>\n<p>&nbsp;<\/p>\n<p>\u3059\u308b\u3068\u3001google-api-python-client\u30d1\u30c3\u30b1\u30fc\u30b8\u53ca\u3073\u524d\u63d0\u306e\u30d1\u30c3\u30b1\u30fc\u30b8(httplib2, oauth2client, rsa\u53ca\u3073uritemplate)\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3001\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u203bWindows\u306ePython3\u3067httplib2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u306b\u306f\u3001\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u7528\u306e\u30b3\u30fc\u30c9\u306e\u4fee\u6b63\u304c\u5fc5\u8981\u306b\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u52d5\u304b\u3057\u3066\u307f\u308b\u3002<\/h2>\n<h3>\u52d5\u4f5c\u78ba\u8a8d\u306e\u624b\u9806<\/h3>\n<p>\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u52d5\u304b\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<ol>\n<li><a href=\"https:\/\/developers.google.com\/youtube\/v3\/code_samples\/python?hl=ja\">Google\u5148\u751f\u306e\u516c\u5f0f\u306e\u30da\u30fc\u30b8<\/a>\u304b\u3089YouTube Data API v3\u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/li>\n<li>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u53d6\u5f97\u3057\u305fAPI\u30ad\u30fc\u3084OAuth2.0\u8a8d\u8a3c\u7528\u306e\u60c5\u5831\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n<li>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u307e\u3059\u2026\u3068\u3044\u3044\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u304c\u3001\u4e0a\u8a18\u306e\u30ea\u30f3\u30af\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u306fPython2\u7528\u306e\u30b3\u30fc\u30c9\u306a\u306e\u3067\u3001print\u6587\u306e\u69cb\u6587\u3092Python3\u306e\u3082\u306e\u306b\u4fee\u6b63\u3057\u307e\u3059\u3002\u4fee\u6b63\u5f8c\u306fmovielist.py\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u540d\u3067\u4fdd\u5b58\u3057\u307e\u3059(movielist.py\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5185\u5bb9\u306f\u3053\u306e\u8a18\u4e8b\u306e\u300c\u52d5\u4f5c\u306e\u78ba\u8a8d\u306b\u4f7f\u3063\u305f\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u300d\u306e\u7bc0\u53c2\u7167)\u3002<\/li>\n<li>movielist.py\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9f\u884c\u3059\u308b\u3068\u3001YouTube\u306e<a href=\"https:\/\/www.youtube.com\/channel\/UC2CV_cEjBd81csrHy24Kytg\">pandanote.info\u30c1\u30e3\u30f3\u30cd\u30eb<\/a>\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u52d5\u753b\u306e\u30bf\u30a4\u30c8\u30eb\u3068\u52d5\u753b\u306eID\u306e\u4e00\u89a7\u3092\u8868\u793a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002OAuth2\u306e\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u304c\u4f5c\u6210\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306b\u306f\u3001\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u76f4\u5f8c\u306b\u4f5c\u6210\u3055\u308c\u307e\u3059\u304c\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u7aef\u672b\u3067\u30d6\u30e9\u30a6\u30b6\u3092\u8868\u793a\u3067\u304d\u306a\u3044\u5834\u5408\u306b\u306f\u3001OAuth2\u306e\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u306e\u3067\u3001&#8221;&#45;&#45;noauth-local-webserver&#8221;\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u3064\u3051\u3066\u5b9f\u884c\u3057\u307e\u3059(\u8a73\u7d30\u306f\u6b21\u7bc0\u53c2\u7167\u3002\u306a\u304a\u3001\u9577\u3044\u30aa\u30d7\u30b7\u30e7\u30f3\u540d\u306b&#8221;-&#8220;\u3092\u542b\u3080\u5834\u5408\u306b\u306f\u3001\u305d\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u89e3\u6790\u5f8c\u306e\u5c5e\u6027\u540d\u306f&#8221;-&#8220;\u3092&#8221;_&#8221;\u306b\u7f6e\u304d\u63db\u3048\u305f\u3082\u306e\u306b\u306a\u308a\u307e\u3059[<a href=\"#_ref2\">2<\/a>]\u3002\u4f8b: &#45;&#45;noauth-local-webserver \u2192 noauth_local_webserver)\u3002\n<div class=\"code\">$ python3 movielist.py<\/div>\n<p>&nbsp;\n<\/li>\n<\/ol>\n<h3>\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30aa\u30d7\u30b7\u30e7\u30f3<\/h3>\n<p>movielist.py\u306e\u4e3b\u8981\u306a\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>&#45;&#45;all-file\u30aa\u30d7\u30b7\u30e7\u30f3: \u516c\u958b\u72b6\u614b\u304c\u300c\u975e\u516c\u958b\u300d\u307e\u305f\u306f\u300c\u9650\u5b9a\u516c\u958b\u300d\u306e\u52d5\u753b\u306b\u3064\u3044\u3066\u306e\u60c5\u5831\u3082\u53d6\u5f97\u53ca\u3073\u8868\u793a\u3057\u307e\u3059\u3002\u672c\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u306a\u3044\u5834\u5408\u306b\u306f\u3001\u516c\u958b\u72b6\u614b\u304c\u300c\u516c\u958b\u300d\u306e\u52d5\u753b\u306e\u307f\u3092\u51e6\u7406\u306e\u5bfe\u8c61\u3068\u3057\u307e\u3059\u3002<\/li>\n<li>&#45;&#45;noauth-local-webserver\u30aa\u30d7\u30b7\u30e7\u30f3: OAuth\u306e\u8a8d\u8a3c\u30b3\u30fc\u30c9\u3092\u672c\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u3068\u306f\u5225\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u3092\u7528\u3044\u3066\u53d6\u5f97\u3059\u308b\u5834\u5408\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p>movielist.py\u306e\u5b9f\u884c\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n<script src=\"https:\/\/gist.github.com\/pandanote-info\/042ad1f8f38e0b717390816e42948a84.js\"><\/script><\/p>\n<h3>OAuth2\u306e\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u304c\u4f5c\u6210\u3055\u308c\u3066\u304a\u3089\u305a\u3001\u304b\u3064\u3001&#45;&#45;noauth-local-webserver\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3057\u3066\u5b9f\u884c\u3057\u305f\u5834\u5408\u306e\u64cd\u4f5c\u6cd5<\/h3>\n<p>OAuth2\u306e\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u304c\u4f5c\u6210\u3055\u308c\u3066\u304a\u3089\u305a\u3001\u304b\u3064\u3001&#45;&#45;noauth-local-webserver\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3057\u3066\u5b9f\u884c\u3057\u305f\u5834\u5408\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u8868\u793a\u3055\u308c\u3001Verification Code\u306e\u5165\u529b\u3092\u6c42\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n<div class=\"code\">[panda@pandanote.info youtube]$ python3 movielist.py  &#45;&#45;noauth-local-webserver<br \/>\n\/home\/panda\/.local\/lib\/python3.6\/site-packages\/oauth2client\/_helpers.py:255: UserWarning: Cannot access movielist.py-oauth2.json: No such file or directory<br \/>\n  warnings.warn(_MISSING_FILE_MESSAGE.format(filename))<br \/>\n&nbsp;<br \/>\nGo to the following link in your browser:<br \/>\n&nbsp;<br \/>\n    https:\/\/accounts.google.com\/o\/oauth2\/auth?client_id=349823378835-26tafco6s1j7tqhhanqccacagtqhbalt.apps.googleusercontent.com&#038;redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&#038;scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fyoutube.readonly&#038;access_type=offline&#038;response_type=code<\/p>\n<p>Enter verification code:<\/p><\/div>\n<p>&nbsp;<\/p>\n<p>\u3053\u306e\u3088\u3046\u306a\u5834\u5408\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u5225\u306e\u7aef\u672b\u3067\u30d6\u30e9\u30a6\u30b6\u3092\u8d77\u52d5\u3057\u3001&#8221;https&#8221;\u3067\u59cb\u307e\u308bURL\u3092\u30a2\u30c9\u30ec\u30b9\u30d0\u30fc\u306bcopy &#038; paste\u3057\u307e\u3059\u3002<\/li>\n<li>YouTube\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u306b\u5bfe\u5fdc\u3059\u308b\u30d6\u30e9\u30f3\u30c9\u30a2\u30ab\u30a6\u30f3\u30c8(\u3053\u3053\u3067\u306fpandanote.info\u3092\u9078\u629e)\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/li>\n<li>\u3059\u308b\u3068\u3001\u30d6\u30e9\u30a6\u30b6\u306e\u753b\u9762\u304c\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u753b\u9762\u306b\u5207\u308a\u66ff\u308f\u3059\u306e\u3067\u3001\u4e0b\u56f3\u306e(a)\u306e\u90e8\u5206\u306b\u793a\u3055\u308c\u305f\u6587\u5b57\u5217\u3092\u4e0a\u8a18\u306e&#8221;Enter verification code: &#8221; \u306e\u884c\u306bcopy &#038; paste\u3057\u3001Enter\u30ad\u30fc\u3092\u62bc\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/pandanote.info\/?attachment_id=2628\" rel=\"attachment wp-att-2628\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2017\/08\/youtube_data_api_v3_scene3-300x246.png\" alt=\"\" width=\"300\" height=\"246\" class=\"alignnone size-medium wp-image-2628\" srcset=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2017\/08\/youtube_data_api_v3_scene3-300x246.png 300w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2017\/08\/youtube_data_api_v3_scene3-768x629.png 768w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2017\/08\/youtube_data_api_v3_scene3-660x541.png 660w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2017\/08\/youtube_data_api_v3_scene3.png 857w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<li>\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u5b9f\u884c\u3055\u308c\u3066\u3001\u5b9f\u884c\u7d50\u679c\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/li>\n<\/ol>\n<h3>\u52d5\u4f5c\u306e\u78ba\u8a8d\u306b\u4f7f\u3063\u305f\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0<\/h3>\n<p>\u52d5\u4f5c\u306e\u78ba\u8a8d\u306b\u4f7f\u3063\u305f\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002\u6700\u521d\u306b\u66f8\u3044\u305f\u3068\u304d\u306b\u306f\u3001\u52d5\u753b\u306e\u30bf\u30a4\u30c8\u30eb\u3068ID\u306e\u30ea\u30b9\u30c8\u3092\u51fa\u529b\u3059\u308b\u3082\u306e\u3067\u3057\u305f\u304c\u3001\u30bf\u30b0\u3092\u51fa\u529b\u3059\u308b\u305f\u3081\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>[2018\/11\/23\u8ffd\u8a18]\u2026\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304cGist\u306e\u66f4\u65b0\u304c\u3067\u304d\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u5148\u307b\u3069\u66f4\u65b0\u3057\u305f\u306e\u3067\u3001\u3053\u308c\u3067\u30bf\u30b0\u304c\u51fa\u529b\u3067\u304d\u308b\u30b3\u30fc\u30c9\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n<script src=\"https:\/\/gist.github.com\/pandanote-info\/196df40df0f8d8aba25c8227b1a4035e.js\"><\/script><\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u3068\u308a\u3042\u3048\u305aPython3\u4e0a\u3067\u52d5\u4f5c\u3055\u305b\u308b\u305f\u3081\u306e\u65b9\u6cd5\u306b\u3064\u3044\u3066\u66f8\u304d\u307e\u3057\u305f\u3002YouTube\u306e<a href=\"https:\/\/www.youtube.com\/channel\/UC2CV_cEjBd81csrHy24Kytg\">pandanote.info\u30c1\u30e3\u30f3\u30cd\u30eb<\/a>\u306e\u65b9\u3082\u52d5\u753b\u306e\u6570\u304c\u305d\u3053\u305d\u3053\u5897\u3048\u3066\u304d\u305f\u306e\u3067\u3001\u305d\u308c\u3089\u306e\u7ba1\u7406\u7528\u306b\u3046\u307e\u304f\u5229\u7528\u3057\u305f\u3044\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u306f\u4ee5\u4e0a\u3067\u3059\u304c\u3001GitHub Pages\u3068\u7d44\u308f\u305b\u305f\u3068\u3053\u308d\u3001\u65b0\u305f\u306a<a href=\"https:\/\/sidestory.pandanote.info\/\">Web\u30b5\u30a4\u30c8<\/a>\u300cpanda\u5927\u5b66\u7fd2\u5e33\u5916\u4f1d\u300d\u304c\u7206\u8a95\u3057\u307e\u3057\u305f\u3002\u305d\u306e\u985b\u672b\u306f<a href=\"https:\/\/pandanote.info\/?p=2872\">\u3053\u3061\u3089<\/a>\u3092\u3054\u89a7\u3044\u305f\u3060\u3051\u308b\u3068\u5e78\u3044\u3067\u3059\u3002<\/p>\n<h2>References \/ \u53c2\u8003\u6587\u732e<\/h2>\n<ol>\n<li id=\"_ref1\"><a href=\"https:\/\/developers.google.com\/youtube\/v3\/getting-started?hl=ja\">YouTube Data API \u306e\u6982\u8981<\/a><\/li>\n<li id=\"_ref2\"><a href=\"https:\/\/docs.python.org\/dev\/library\/argparse.html#dest\">argparse \u2014 Parser for command-line options, arguments and sub-commands<\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b google-api-python-client\u304cVersion 1.6.2\u4ee5\u964d\u3067Python3\u306b\u5bfe\u5fdc\u3057\u305f\u3088\u3046\u306a\u306e\u3067\u3001\u3053\u3044\u3064\u3092\u4f7f\u3063\u3066Fedora 26\u4e0a\u3067YouTube Data API v3\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u52d5\u304b\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002 \u305d\u306e\u985b\u672b\u3092\u66f8\u3044\u3066\u3044\u304d\u307e\u3059\u3002 [2018\/9\/23\u8ffd\u8a18] \u7d9a\u7de8\u306e\u3088\u3046\u306a\u3082\u306e\u3092\u66f8\u304d\u307e\u3057\u305f\u3002\u8a73\u3057\u304f\u306f\u300c\u307e\u3068\u3081\u300d\u306e\u7bc0\u3092\u53c2\u7167\u3057\u3066\u3044\u305f\u3060\u3051\u308b\u3068\u5e78\u3044\u3067\u3059\u3002 \u4e8b\u524d\u6e96\u5099 A\u2026 <span class=\"read-more\"><a href=\"https:\/\/pandanote.info\/?p=791\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":797,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,8,25,20,3,14],"tags":[],"class_list":["post-791","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-api","category-fedora","category-google-apis","category-python3","category-website-2","category-youtube"],"_links":{"self":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/791","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=791"}],"version-history":[{"count":24,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/791\/revisions"}],"predecessor-version":[{"id":7145,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/791\/revisions\/7145"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/media\/797"}],"wp:attachment":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=791"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=791"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}