youtube-dlのあれこれ
DLできんやんけ[Part1]
URLは間違ってないはずなのに「ERROR: unable to download video data: HTTP Error 403: Forbidden」というエラーが出る。
Youtube Live等のストリーミングを強制終了したり、ダウンロード失敗でファイルが損傷すると発生する模様です。(結構発生します)
対処法としては
youtube-dl --rm-cache-dir
上記を実行してキャッシュファイルを初期化することが挙げられます。
DLできんやんけ[Part2]
YouTube側の挙動によるものなので2つまとめます。
「ERROR: YouTube said: This video is no longer available because the YouTube account associated with this video has been terminated.
Sorry about that.」
↑こちらの方はチャンネルBAN
「ERROR: Content Warning
If the owner of this video has granted you access, please sign in.
This video is private.」
↑こちらの方は動画非公開
こればっかりはどうしようもないです。
DLできんやんけ[Part3]
ERROR: Unsupported URL
サポートしていない動画サービスです。
サポートしている動画サービスは
youtube-dl --list-extractors
上記を実行すると対応サイトがずらーーーっと出てきます。
GYAOやYouTube、Twitter等様々なサイトに対応しています。