# Upload to Google Drive in memory (no local file saved) drive_file = drive.CreateFile( 'title': filename, 'parents': ['id': drive_folder_id] if drive_folder_id != 'root' else [] ) drive_file.SetContentString(response.content) # Works for binary too drive_file.Upload()
Save to Google Drive (official Google Chrome extension). how to download picture to google drive
def download_image_to_drive(image_url, drive_folder_id='root', filename=None): """ Downloads an image from a URL and uploads directly to Google Drive. # Upload to Google Drive in memory (no
# Bulk list image_urls = [ "https://picsum.photos/id/1/200/300", "https://picsum.photos/id/2/200/300" ] for url in image_urls: download_image_to_drive(url) how to download picture to google drive