Skip to content

Instantly share code, notes, and snippets.

View henrych4's full-sized avatar

hhh henrych4

  • Hong Kong
View GitHub Profile
@henrych4
henrych4 / download_GoogleDrive.py
Last active January 17, 2024 04:02
A python script for downloading file in google drive
#Reference: https://stackoverflow.com/questions/38511444/python-download-files-from-google-drive-using-url
import requests
def download_file_from_google_drive(id, destination):
URL = "https://docs.google.com/uc?export=download"
session = requests.Session()
response = session.get(URL, params = { 'id' : id }, stream = True)