Download multiple file from google drive via gdown

 1. At the Google drive page, open console and type:

$$("[data-id]").map((el) => 'https://drive.google.com/uc?id=' + el.getAttribute('data-id')).join(" ")

2. Copy links

3. Open python

import os

links = COPIED_STRING

links = list(map(lambda x: x.split("id=")[-1], links.split(" ")))

for link in links:

    os.system("gdown {}".format(link))




ref: https://olegkhomenko.medium.com/how-to-download-multiple-files-from-google-drive-using-terminal-7f0f2ee357b8

댓글

이 블로그의 인기 게시물

sklearn tsne + matplotlib scatter

Implementation of Focal Loss using Pytorch