Skip to content

Instantly share code, notes, and snippets.

@bobmayes
bobmayes / download_from_drive.py
Created August 6, 2020 21:37 — forked from lelogrott/download_from_drive.py
downloads all files in a google drive folder keeping the folder structure.
from __future__ import print_function
import pickle
import io
import argparse
import sys
import os.path
from pathlib import Path
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request