Downloads_ForYoutubeはYoutubeから自分のGoogle Colabolatoryに直接動画のダウンロードに使うためのPythonのサンプルコードです。
具体的には以下の工程に沿って扱います。
- pytubeを用いてstreamを取得し、複数項目ある中から動画の選択(YouTubeの使用上、同じ動画にもFlame数や画質によって種類が違う)
- 任意の動画のダウンロード
-
- 自身のGoogleDriveをマウントする(マウントすることでクラウドに保存されるため、容量に余裕ができます。)
- ダウンロード先のディレクトリに移動する(cdコマンドで移動かGUI操作)
- Url部分を好きなYoutubeのURLに変更
- fpsや画質のリストがでるのでその中から選択
- download.部分でダウンロード
Downloads_ForYoutube is a service that allows you to download videos from Youtube directly from your Google Colabolatory. Here's some sample Python code to use for downloading .
Specifically, the following process is followed.
- Use pytube3 to get a stream and select a video from among multiple items (due to the use of YouTube, the same video can have different types depending on the number of flames and quality).
- Download any video
Please look at the code for more details.
-
- Mount your own Google Drive(By mounting it, it will be stored in the cloud, so there is more room for capacity.)
- Move to the download destination directory (Using cd command.)
- Change the Url part to your favorite Youtube URL
- Since a list of fps and image quality appears, select from them
- Download at download. part
-
This app seems to have been disabled due to a case that started with the deletion of pytube3's rapper, youtube-dl, on Github. So, this app is currently unavailable. I'm trying to find another way to download it, but I would like to ask for some time. I'm looking for other ways to download this app, but it will take a while.
-
- Now that the pytube pipeline, youtube-dl, is available on Github, it works again. It's available now, so go ahead and use it!
Downloads_ForYoutube
Copyright (c) 2020 Rintaro Nakahodo
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php