# Guide to Download youtube Playlist and Complete channel to Drive using Colab and Youtube-dl

**URL:** <https://onehack.st/t/guide-to-download-youtube-playlist-and-complete-channel-to-drive-using-colab-and-youtube-dl/73377>\
**Category:** Tools & Scripts\
**Created:** [March 14, 2020, 2:53pm UTC](https://onehack.st/t/guide-to-download-youtube-playlist-and-complete-channel-to-drive-using-colab-and-youtube-dl/73377 "2020-03-14T14:53:50Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![beast](https://onehack.st/user_avatar/onehack.st/beast/32/35433_2.png) [@beast](https://onehack.st/u/beast)\
**Post date:** [March 14, 2020, 2:53pm UTC](https://onehack.st/t/guide-to-download-youtube-playlist-and-complete-channel-to-drive-using-colab-and-youtube-dl/73377/1 "2020-03-14T14:53:50Z")

</div>

Requirements:  
This tutorial will guide you to download youtube video, Youtube playlist, or entire youtube channel to your drive or Team Drive.  
We will be installing and using Youtube-dl for this task.

> Step 1:  
> Open [Google Colab](https://colab.research.google.com/)  
> Step 2:  
> Mount your drive in Google Colab  
> Step 3:  
> Goto insert and select New Code so that we can put our code  
> Step 4:  
> Install youtube-dl using the following command

Open this colab script. Paste the youtube, playlist / videos / channel link and select the required settings and download.  
[![](https://i.imgur.com/315hDTo.png) ](https://colab.research.google.com/drive/13G4Q8scsCPh6r9YqX39hqEUu7axq4Xr2)

**It can also download other direct download links.**

**Supported sites from which it can download the videos are:  
 [https://ytdl-org.github.io/youtube-dl/supportedsites.html](https://ytdl-org.github.io/youtube-dl/supportedsites.html)**

---

<div class="post-metadata">

**Author:** ![WEBD](https://onehack.st/user_avatar/onehack.st/webd/32/117499_2.png) [@WEBD](https://onehack.st/u/WEBD)\
**Post date:** [March 14, 2020, 11:48pm UTC](https://onehack.st/t/guide-to-download-youtube-playlist-and-complete-channel-to-drive-using-colab-and-youtube-dl/73377/2 "2020-03-14T23:48:56Z")

</div>

Thanks! Nice share. Is it possible to download with subtitles?

---

<div class="post-metadata">

**Author:** ![ermyas](https://onehack.st/user_avatar/onehack.st/ermyas/32/36482_2.png) [@ermyas](https://onehack.st/u/ermyas)\
**Post date:** [March 15, 2020, 12:16pm UTC](https://onehack.st/t/guide-to-download-youtube-playlist-and-complete-channel-to-drive-using-colab-and-youtube-dl/73377/3 "2020-03-15T12:16:27Z")

</div>

How to mount google drive? and there is no new code on the insert tab…

---

<div class="post-metadata">

**Author:** ![beast](https://onehack.st/user_avatar/onehack.st/beast/32/35433_2.png) [@beast](https://onehack.st/u/beast)\
**Post date:** [March 15, 2020, 12:28pm UTC](https://onehack.st/t/guide-to-download-youtube-playlist-and-complete-channel-to-drive-using-colab-and-youtube-dl/73377/4 "2020-03-15T12:28:15Z")

</div>

run this code to mount drive

> from google.colab import drive  
> drive.mount(‘/content/drive’)

---

<div class="post-metadata">

**Author:** ![ermyas](https://onehack.st/user_avatar/onehack.st/ermyas/32/36482_2.png) [@ermyas](https://onehack.st/u/ermyas)\
**Post date:** [March 15, 2020, 12:33pm UTC](https://onehack.st/t/guide-to-download-youtube-playlist-and-complete-channel-to-drive-using-colab-and-youtube-dl/73377/5 "2020-03-15T12:33:46Z")

</div>

ValueError Traceback (most recent call last)  
 in ()  
1 from google.colab import drive  
----\> 2 drive.mount(‘/content/drive’)

/usr/local/lib/python3.6/dist-packages/google/colab/drive.py in mount(mountpoint, force\_remount, timeout\_ms, use\_metadata\_server)  
152 raise ValueError(‘Mountpoint must not be a symlink’)  
153 if \_os.path.isdir(mountpoint) and \_os.listdir(mountpoint):  
 → 154 raise ValueError(‘Mountpoint must not already contain files’)  
155 if not \_os.path.isdir(mountpoint) and \_os.path.exists(mountpoint):  
156 raise ValueError(‘Mountpoint must either be a directory or not exist’)

ValueError: Mountpoint must not already contain files

---

<div class="post-metadata">

**Author:** ![beast](https://onehack.st/user_avatar/onehack.st/beast/32/35433_2.png) [@beast](https://onehack.st/u/beast)\
**Post date:** [March 15, 2020, 12:53pm UTC](https://onehack.st/t/guide-to-download-youtube-playlist-and-complete-channel-to-drive-using-colab-and-youtube-dl/73377/6 "2020-03-15T12:53:51Z")

</div>

Haven’t faced such error. so don’t know how to fix. Go to runtime\> reset runtime.  
And try again.

---

<div class="post-metadata">

**Author:** ![beast](https://onehack.st/user_avatar/onehack.st/beast/32/35433_2.png) [@beast](https://onehack.st/u/beast)\
**Post date:** [March 15, 2020, 1:46pm UTC](https://onehack.st/t/guide-to-download-youtube-playlist-and-complete-channel-to-drive-using-colab-and-youtube-dl/73377/7 "2020-03-15T13:46:21Z")

</div>

Updated the thread. Now you don’t have to paste the code or do other things. Just run the script as suggested and download.

---

<div class="post-metadata">

**Author:** ![Mato\_Xoshnaw](https://onehack.st/user_avatar/onehack.st/mato_xoshnaw/32/28172_2.png) [@Mato\_Xoshnaw](https://onehack.st/u/Mato_Xoshnaw)\
**Post date:** [March 16, 2020, 4:39am UTC](https://onehack.st/t/guide-to-download-youtube-playlist-and-complete-channel-to-drive-using-colab-and-youtube-dl/73377/8 "2020-03-16T04:39:39Z")

</div>

thanks man,but there is another way to download it by using 4k video downloader

---

<div class="post-metadata">

**Author:** ![beast](https://onehack.st/user_avatar/onehack.st/beast/32/35433_2.png) [@beast](https://onehack.st/u/beast)\
**Post date:** [March 16, 2020, 7:28am UTC](https://onehack.st/t/guide-to-download-youtube-playlist-and-complete-channel-to-drive-using-colab-and-youtube-dl/73377/9 "2020-03-16T07:28:24Z")

</div>

4k downloader downloads it to your harddrive but it downloads it in your google drive.

---

<div class="post-metadata">

**Author:** ![Saitama](https://onehack.st/user_avatar/onehack.st/saitama/32/38608_2.png) [@Saitama](https://onehack.st/u/Saitama)\
**Post date:** [March 16, 2020, 9:56am UTC](https://onehack.st/t/guide-to-download-youtube-playlist-and-complete-channel-to-drive-using-colab-and-youtube-dl/73377/10 "2020-03-16T09:56:03Z")

</div>

I clicked on ad intentionally to support 1Hack team, thank you.

---

<div class="post-metadata">

**Author:** ![beast](https://onehack.st/user_avatar/onehack.st/beast/32/35433_2.png) [@beast](https://onehack.st/u/beast)\
**Post date:** [March 22, 2020, 10:34am UTC](https://onehack.st/t/guide-to-download-youtube-playlist-and-complete-channel-to-drive-using-colab-and-youtube-dl/73377/11 "2020-03-22T10:34:50Z")

</div>

> [@beast](#):
>
> Supported sites from which it can download the videos are:  
> [https://ytdl-org.github.io/youtube-dl/supportedsites.html](https://ytdl-org.github.io/youtube-dl/supportedsites.html)

Updated the thread. Now you can see which sites are supported from this tool.

---

<div class="post-metadata">

**Author:** ![Armin](https://onehack.st/user_avatar/onehack.st/armin/32/49874_2.png) [@Armin](https://onehack.st/u/Armin)\
**Post date:** [April 1, 2020, 6:10am UTC](https://onehack.st/t/guide-to-download-youtube-playlist-and-complete-channel-to-drive-using-colab-and-youtube-dl/73377/12 "2020-04-01T06:10:49Z")

</div>

Thanks 😍

---

<div class="post-metadata">

**Author:** ![dillu\_dilsa](https://onehack.st/user_avatar/onehack.st/dillu_dilsa/32/30553_2.png) [@dillu\_dilsa](https://onehack.st/u/dillu_dilsa)\
**Post date:** [April 1, 2020, 6:31am UTC](https://onehack.st/t/guide-to-download-youtube-playlist-and-complete-channel-to-drive-using-colab-and-youtube-dl/73377/13 "2020-04-01T06:31:24Z")

</div>

> [@beast](#):
>
> stalling and using Youtube-dl for this task

Thank you so much

---

<div class="post-metadata">

**Author:** ![Victor\_Lozano](https://onehack.st/user_avatar/onehack.st/victor_lozano/32/41868_2.png) [@Victor\_Lozano](https://onehack.st/u/Victor_Lozano)\
**Post date:** [May 14, 2020, 4:44am UTC](https://onehack.st/t/guide-to-download-youtube-playlist-and-complete-channel-to-drive-using-colab-and-youtube-dl/73377/14 "2020-05-14T04:44:59Z")

</div>

Thank you great tool. how do you change the folder of the video is going to be?

---

<div class="post-metadata">

**Author:** ![Ravi\_Khatri](https://onehack.st/user_avatar/onehack.st/ravi_khatri/32/19988_2.png) [@Ravi\_Khatri](https://onehack.st/u/Ravi_Khatri)\
**Post date:** [June 5, 2020, 7:02am UTC](https://onehack.st/t/guide-to-download-youtube-playlist-and-complete-channel-to-drive-using-colab-and-youtube-dl/73377/16 "2020-06-05T07:02:23Z")

</div>

This used colab space and if the size of videos are big like more than 110gb(provided by colab) then runtime will crash and no file will be downloaded , it would be better if it download video one by one and then transfer video to drive and clearing the space occupied by it, so that it become possible to download videos of big size(\>110gb). it’s possible please add pause/resume functionality.

---

<div class="post-metadata">

**Author:** ![mehtab\_alam](https://onehack.st/letter_avatar_proxy/v4/letter/m/c5a1d2/32.png) [@mehtab\_alam](https://onehack.st/u/mehtab_alam)\
**Post date:** [June 5, 2020, 12:12pm UTC](https://onehack.st/t/guide-to-download-youtube-playlist-and-complete-channel-to-drive-using-colab-and-youtube-dl/73377/17 "2020-06-05T12:12:19Z")

</div>

i have got an error

/bin/bash: /usr/local/bin/youtube-dl: Permission denied  
can someone help me

---

<div class="post-metadata">

**Author:** ![Fabricio\_Gomes](https://onehack.st/user_avatar/onehack.st/fabricio_gomes/32/38418_2.png) [@Fabricio\_Gomes](https://onehack.st/u/Fabricio_Gomes)\
**Post date:** [June 7, 2020, 8:22am UTC](https://onehack.st/t/guide-to-download-youtube-playlist-and-complete-channel-to-drive-using-colab-and-youtube-dl/73377/18 "2020-06-07T08:22:14Z")

</div>

How to use this script to download videos that are located in google drive team drive?

---

<div class="post-metadata">

**Author:** ![Minion](https://onehack.st/user_avatar/onehack.st/minion/32/46883_2.png) [@Minion](https://onehack.st/u/Minion)\
**Post date:** [June 17, 2020, 8:19pm UTC](https://onehack.st/t/guide-to-download-youtube-playlist-and-complete-channel-to-drive-using-colab-and-youtube-dl/73377/19 "2020-06-17T20:19:56Z")

</div>

nice one, Im gonna try 🙂 thanks

---

<div class="post-metadata">

**Author:** ![jackmark](https://onehack.st/user_avatar/onehack.st/jackmark/32/18872_2.png) [@jackmark](https://onehack.st/u/jackmark)\
**Post date:** [June 17, 2020, 9:38pm UTC](https://onehack.st/t/guide-to-download-youtube-playlist-and-complete-channel-to-drive-using-colab-and-youtube-dl/73377/20 "2020-06-17T21:38:04Z")

</div>

Thanks Buddy..!  
Really helpful post

---

<div class="post-metadata">

**Author:** ![sqageek](https://onehack.st/user_avatar/onehack.st/sqageek/32/18984_2.png) [@sqageek](https://onehack.st/u/sqageek)\
**Post date:** [June 18, 2020, 4:46am UTC](https://onehack.st/t/guide-to-download-youtube-playlist-and-complete-channel-to-drive-using-colab-and-youtube-dl/73377/21 "2020-06-18T04:46:40Z")

</div>

There is one issue with this. When we download bigger playlist, it is filling the disk space and not moving the files immediately to the Google drive. If this script is modified in such a way that, it copies to Gdrive/shared drive once download completes.

[Next page](https://onehack.st/t/guide-to-download-youtube-playlist-and-complete-channel-to-drive-using-colab-and-youtube-dl/73377.md?page=2)
