Download a YouTube playlist and automatically upload it to Drive with Google Colab
- Copy the playlist link you want to download
- Paste the link in
LINK:str = "youtube.com/playlist_link"
- Google Colab menu > Runtime > Run all
- If no error occurs, go to your Drive and search for the compressed file
- By default the videos will be downloaded at max resolution, you can choose a custom res changing the value in
RESOLUTION:str = "480p"
(be sure that the res is available) and activatingvideo.streams.filter(res=RESOLUTION).first().download()
, also deactivatevideo.streams.get_highest_resolution().download(filename=f"{video_title}.mp4")