{"id":1832,"date":"2019-07-07T20:15:17","date_gmt":"2019-07-07T11:15:17","guid":{"rendered":"https:\/\/yuis-programming.com\/?p=1832"},"modified":"2021-07-19T18:09:28","modified_gmt":"2021-07-19T09:09:28","slug":"youtube-dl%e3%81%a7%e3%83%8b%e3%82%b3%e3%83%8b%e3%82%b3%e5%8b%95%e7%94%bb%e3%82%92%e3%83%80%e3%82%a6%e3%83%b3%e3%83%ad%e3%83%bc%e3%83%89%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84%e5%a0%b4%e5%90%88%e3%81%ab","status":"publish","type":"post","link":"https:\/\/yuis-programming.com\/?p=1832","title":{"rendered":"youtube-dl\u3067\u30cb\u30b3\u30cb\u30b3\u52d5\u753b\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u306a\u3044\u5834\u5408\u306b\u898b\u3066\u307b\u3057\u3044"},"content":{"rendered":"<p>youtube-dl\u3067\u30cb\u30b3\u30cb\u30b3\u52d5\u753b\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u306a\u3044\u5834\u5408\u306e\u5bfe\u51e6\u65b9\u6cd5\u3068\u89e3\u6c7a\u65b9\u6cd5\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>youtube-dl\u3067\u306f\u30cb\u30b3\u30cb\u30b3\u52d5\u753b\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u30d0\u30b0\u304c\u3042\u308a\u3001\u7279\u5b9a\u306e\u624b\u9806\u3067\u3084\u3089\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u306f\u4ee5\u524d\u8a71\u3057\u305f\u3068\u304a\u308a\u3067\u3059\u3002\u305d\u3061\u3089\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u8a18\u4e8b\u306b\u3066\u3002<\/p>\n<p><a href=\"https:\/\/yuis-programming.com\/?p=1576\">youtube-dl\u3067\u30cb\u30b3\u30cb\u30b3\u52d5\u753b\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b<\/a><\/p>\n<p>\u4ed6\u306b\u3082\u3001\u30cb\u30b3\u30cb\u30b3\u52d5\u753b\u306f\u4f1a\u54e1\u5236\u30b5\u30a4\u30c8\u3067\u3042\u308b\u306e\u3067cookie\u304c\u5fc5\u8981\u3067\u3042\u3063\u305f\u308a\u3001\u5f8c\u8ff0\u3059\u308b\u3088\u3046\u306b\u8a00\u8a9e\u8a2d\u5b9a\u3084\u305d\u306e\u4ed6\u8a2d\u5b9a\u304c\u5f71\u97ff\u3059\u308b\u3053\u3068\u3082\u3042\u308b\u3088\u3046\u3067\u3059\u3002\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3001\u3068\u3044\u3046\u65b9\u306e\u53c2\u8003\u306b\u306a\u308c\u3070\u3002<\/p>\n<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">Contents<\/p><ul class=\"toc_list\"><li><a href=\"#youtube-dl\"><span class=\"toc_number toc_depth_1\">1<\/span> youtube-dl\u304c\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306a\u3044<\/a><\/li><li><a href=\"#cookiecookie\"><span class=\"toc_number toc_depth_1\">2<\/span> cookie\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u306a\u3044\u3001\u307e\u305f\u306fcookie\u304c\u53e4\u3044\u3001\u671f\u9650\u304c\u5207\u308c\u3066\u3044\u308b<\/a><\/li><li><a href=\"#VPN\"><span class=\"toc_number toc_depth_1\">3<\/span> VPN\u306a\u3069\u306b\u3088\u308a\u8a00\u8a9e\u8a2d\u5b9a\u304c\u82f1\u8a9e\u306b\u306a\u3063\u3066\u3044\u308b<\/a><\/li><li><a href=\"#i\"><span class=\"toc_number toc_depth_1\">4<\/span> \u30b9\u30af\u30ea\u30d7\u30c8<\/a><\/li><\/ul><\/div>\n<h2><span id=\"youtube-dl\">youtube-dl\u304c\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306a\u3044<\/span><\/h2>\n<p><img src=\"https:\/\/yuis.xsrv.jp\/images\/ss\/ShareX_ScreenShot_4526c496-b650-44ff-8210-e70b8a6d2a6b.png\" alt=\"https:\/\/yuis.xsrv.jp\/images\/ss\/ShareX_ScreenShot_4526c496-b650-44ff-8210-e70b8a6d2a6b.png\"><\/p>\n<p><code>pip-latestis youtube-dl<\/code>\u3067\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2><span id=\"cookiecookie\">cookie\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u306a\u3044\u3001\u307e\u305f\u306fcookie\u304c\u53e4\u3044\u3001\u671f\u9650\u304c\u5207\u308c\u3066\u3044\u308b<\/span><\/h2>\n<p><img src=\"https:\/\/yuis.xsrv.jp\/images\/ss\/ShareX_ScreenShot_34b0a594-c1e3-44ad-b6f1-ec475d44d9c5.png\" alt=\"https:\/\/yuis.xsrv.jp\/images\/ss\/ShareX_ScreenShot_34b0a594-c1e3-44ad-b6f1-ec475d44d9c5.png\"><\/p>\n<p>\u901a\u5e38\u30cb\u30b3\u30cb\u30b3\u52d5\u753b\u306b\u304a\u3044\u3066\u30bb\u30c3\u30b7\u30e7\u30f3\u30af\u30c3\u30ad\u30fc\u306f\u5207\u308c\u308b\u3053\u3068\u306f\u306a\u3044\u3088\u3046\u3067\u3059\u304c\u3001\u4e00\u5fdc\u6700\u65b0\u306e\u3082\u306e\u306b\u66f4\u65b0\u3057\u3066\u304a\u304f\u3068\u3088\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<h2><span id=\"VPN\">VPN\u306a\u3069\u306b\u3088\u308a\u8a00\u8a9e\u8a2d\u5b9a\u304c\u82f1\u8a9e\u306b\u306a\u3063\u3066\u3044\u308b<\/span><\/h2>\n<p><img src=\"https:\/\/yuis.xsrv.jp\/images\/ss\/ShareX_ScreenShot_7bedb6d1-271f-4c01-b0f1-8b9efb466532.png\" alt=\"https:\/\/yuis.xsrv.jp\/images\/ss\/ShareX_ScreenShot_7bedb6d1-271f-4c01-b0f1-8b9efb466532.png\"><\/p>\n<p>\u30cb\u30b3\u30cb\u30b3\u52d5\u753b\u306b\u3066\u30b3\u30e1\u30f3\u30c8\u304c\u8868\u793a\u3055\u308c\u306a\u3044\u3068\u3044\u3046\u5834\u5408\u306f\u3001\u8a00\u8a9e\u8a2d\u5b9a\u304c\u65e5\u672c\u3067\u306f\u306a\u304f\u82f1\u8a9e\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u305d\u308c\u81ea\u4f53\u306f\u554f\u984c\u306a\u3044\u3088\u3046\u306b\u898b\u3048\u307e\u3059\u304c\u3001\u5b9f\u969b\u554f\u984c\u50d5\u306f\u3053\u306e\u8a2d\u5b9a\u3092\u82f1\u8a9e\u304b\u3089\u65e5\u672c\u8a9e\u3078\u5909\u66f4\u3057\u305f\u3060\u3051\u3067youtube-dl\u3067404\u30a8\u30e9\u30fc\u304c\u51fa\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>VPN\u306a\u3069\u3092\u901a\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u8a00\u8a9e\u304c\u5909\u308f\u308b\u50be\u5411\u304c\u3042\u308a\u307e\u3059\u3002VPN\u81ea\u4f53\u306f\u5e78\u3044\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306e\u53ef\u5426\u306b\u76f4\u63a5\u7684\u306a\u5f71\u97ff\u3092\u4e0e\u3048\u307e\u305b\u3093\u304c\u3001\u6c17\u3092\u3064\u3051\u3066\u304a\u304f\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h2><span id=\"i\">\u30b9\u30af\u30ea\u30d7\u30c8<\/span><\/h2>\n<p>\u3088\u3063\u3066youtube-dl\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code>\nydlNiconico(){\n    # LC_ALL=en_US.UTF-8 \\\n    # youtube-dl -i -v \\\n    # -o \"\/mnt\/e\/_videos\/_youtube_dl\/_niconico\/%(id)s--%(title)s--%(uploader)s.%(ext)s\" \\\n    # --cookies \/home\/data\/youtube-dl\/cookie_niconico.txt --download-archive \/home\/data\/youtube-dl\/archive.txt \\\n  # --embed-subs --embed-thumbnail --write-info-json --all-subs --sub-format srt \\\n    # \"$(cuturlquerystr \"$1\")\"\n    LC_ALL=en_US.UTF-8 \\\n    youtube-dl -i -v --no-check-certificate \\\n    -o \"\/mnt\/e\/_videos\/_youtube_dl\/_niconico\/%(id)s--%(title)s--%(uploader)s.%(ext)s\" \\\n    --cookies \/home\/data\/youtube-dl\/cookie_niconico.txt --download-archive \/home\/data\/youtube-dl\/archive.txt \\\n    --embed-subs --embed-thumbnail --write-info-json --all-subs --sub-format srt \\\n    \"$(cuturlquerystr \"$1\")\"\n}\n\nydlNiconicoBylist(){\n  printf \"Paste list of URLs.\\n\" ; inputcontent=\"$(&lt;\/dev\/stdin)\"\n  printf \"${inputcontent}\\n\" | xargs -I {} bash -ic 'until ydlNiconico \"{}\"; do :; done'\n  # echo $inputcontent | xargs -I {} bash -ic 'echo \"hoge: {}\"'\n}\n<\/code><\/pre>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u8a18\u4e8b\u306b\u3066\u3002<\/p>\n<p><a href=\"https:\/\/yuis-programming.com\/?p=1301\">[Awesome youtube-dl snippet]\u3053\u308c\u898b\u3068\u3051\u3070\u9593\u9055\u3044\u306a\u3044\u6700\u5f37youtube-dl\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u89e3\u8aac<\/a><br \/>\n<a href=\"https:\/\/yuis-programming.com\/?p=1819\">youtube-dl SSL certificate verify failed\u30a8\u30e9\u30fc\u306e\u5bfe\u51e6\u6cd5<\/a><\/p>\n<p>\u3053\u308c\u3067\u3001<code>ydlNiconicoBylist<\/code>\u3092\u5b9f\u884c\u3057\u3066\u30cb\u30b3\u30cb\u30b3\u52d5\u753b\u306eURL\u3092\u9023\u756a\u3067\u4e26\u3079\u3066\u30da\u30fc\u30b9\u30c8\u3059\u308b\u3060\u3051\u3067\u30d0\u30c3\u30c1\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>youtube-dl\u3067\u30cb\u30b3\u30cb\u30b3\u52d5\u753b\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u306a\u3044\u5834\u5408\u306e\u5bfe\u51e6\u65b9\u6cd5\u3068\u89e3\u6c7a\u65b9\u6cd5\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002 yout [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[1],"tags":[],"acf":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8Rxwo-ty","_links":{"self":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/1832"}],"collection":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1832"}],"version-history":[{"count":2,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/1832\/revisions"}],"predecessor-version":[{"id":2689,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/1832\/revisions\/2689"}],"wp:attachment":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}