Download file
Tags: #googledrive #snippet
Author: Jeremy Ravenel

Input

Pre-requisite : change file access rights to make sure Naas can access ("Allow anyone") If you need more specific user rights, just drop us an email [email protected]

Import library

1
try:
2
import gdown
3
except:
4
!pip install gdown
5
import gdown
Copied!

Model

Url of the file and the name of the output

1
url = 'https://drive.google.com/uc?id=1-3UlYEPKgL4E197umEh6d58jWknodSm5'
2
output = 'naas_happy_hour.mp4'
Copied!

Output

Download the file

1
gdown.download(url, output, quiet=False)
Copied!
Copy link
Edit on GitHub