Chapter folders renamed

This commit is contained in:
Karan Solanki
2021-08-13 11:44:51 +05:30
parent d9f3f5b159
commit 1eb709f83a
211 changed files with 0 additions and 0 deletions
@@ -0,0 +1,22 @@
# this is a code without using any threads
from time import time
from getfilelistpy import getfilelist
import gdown
resource = {
"api_key": "AIzaSyDYKmm85keqnk4bF1DpYa2bxddKrGns4z0",
"id": "0B8TxHW2Ci6dbckVweTRtTlV3RUU",
"fields": "files(name,id,webContentLink)",
}
res = getfilelist.GetFileList(resource)
files_list = res['fileList'][0]
t1 = time()
for item in files_list['files']:
gdown.download( item['webContentLink'],
'./files/{}'.format(item['name']),
quiet=False)
print('Time taken to download: %s seconds', time() - t1)