[ebf7be]: / code / download.py

Download this file

33 lines (27 with data), 1.2 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
"""
a simple automatic script for download LUNA16 dataset from google drive
Usage: python download.py
"""
from __future__ import print_function
import sys
import os
from datetime import datetime
file_id = [
'https://drive.google.com/open?id=0Bz-jINrxV740dVhQRHl6OWNRanc',
'https://drive.google.com/open?id=0Bz-jINrxV740QTZNenZadmw4NEE',
'https://drive.google.com/open?id=0Bz-jINrxV740OFRGZ0lvZ1pZU28',
'https://drive.google.com/open?id=0Bz-jINrxV740Z0NoSW9JRE9RRVk',
'https://drive.google.com/open?id=0Bz-jINrxV740SDB3R0hYalJGa2M',
'https://drive.google.com/open?id=0Bz-jINrxV740Nm1fQWhTZUVia2s',
'https://drive.google.com/open?id=0Bz-jINrxV740YXBpYV9MQkVxSk0',
'https://drive.google.com/open?id=0Bz-jINrxV740YTM0X2dQcGZ1eFU',
'https://drive.google.com/open?id=0Bz-jINrxV740WEpXakYyRWxaSm8',
'https://drive.google.com/open?id=0Bz-jINrxV740YVZFMEdpQmZrOTQ'
]
file_id = [fid[fid.find('=')+1:] for fid in file_id]
file_name = ['subset'+str(i)+'.zip' for i in range(1, 10)]
for fid, fname in zip(file_id, file_name):
print fname
print datetime.now()
command = 'python google_drive.py '+fid+ ' '+fname
os.sys(command)