Skip to content

Code to download YouTube videos directly from googleDrive in Python. Experimental use.

License

Notifications You must be signed in to change notification settings

NakahodoRintaro/Download_YouTube_directly_to_GoogleDrive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 

Repository files navigation

Downloads_ForYoutube

Downloads_ForYoutubeはYoutubeから自分のGoogle Colabolatoryに直接動画のダウンロードに使うためのPythonのサンプルコードです。

具体的には以下の工程に沿って扱います。

  1. pytubeを用いてstreamを取得し、複数項目ある中から動画の選択(YouTubeの使用上、同じ動画にもFlame数や画質によって種類が違う)
  2. 任意の動画のダウンロード

※今回使用したのはpytube3のversion 9.6.4.です。

  • ダウンロード方法

    • 自身のGoogleDriveをマウントする(マウントすることでクラウドに保存されるため、容量に余裕ができます。)
    • ダウンロード先のディレクトリに移動する(cdコマンドで移動かGUI操作)
    • Url部分を好きなYoutubeのURLに変更
    • fpsや画質のリストがでるのでその中から選択
    • download.部分でダウンロード

How to youtube Download directry Google Colabolatory

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.

  1. 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).
  2. Download any video

Please look at the code for more details.
  • How to download

    • 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

  • News(As of Nov. 2)

    • 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.
  • News(As of Apr.20)

    • Now that the pytube pipeline, youtube-dl, is available on Github, it works again. It's available now, so go ahead and use it!

Related information



Downloads_ForYoutube
Copyright (c) 2020 Rintaro Nakahodo
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php

About

Code to download YouTube videos directly from googleDrive in Python. Experimental use.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published