to mount google dirve with google colab
from google.colab import drive
drive.mount('/content/drive')
to paste the download link and select desired location in your drive
import os
os.chdir("/content/drive/My Drive")
!wget -c "download-link" --no-check-certificate
to unmount google drive with colab
Run Below Commands to Unmount Drive in Google Colab:-
#@title <= RUN THIS CELL TO UnMount the Google Drive
from google.colab import drive
drive.flush_and_unmount()
olivia austin
karma rx
calvey carvet
How to download youtube vidoes with python and google colab
modos coding
modos coding
�Apr 16
how to download youtube videos ?
Today we learn together how to download youtube videos by python and pytube library
and in google colab platform.
first things first, go to colab.research.google.com and create a notebook, you need
to sign in to your google account.
now let�s start :))
download and install pytube library:
import the library and set video url:
see available formats and resolutions:
choose your resolution:
and download it :
now from colab files menu you can see video and download it to your local system.
you can also download the video directly in google drive:
source code :
https://colab.research.google.com/drive/1mTrog_Kk7mQCHo80BvhxIf53SIrfaf3b?
usp=sharing
https://www.youtube.com/watch?v=lL2VWEpWS6E
https://www.youtube.com/watch?v=E8Qenscm80k&t=0s