defdownload(): f = open("categories.txt", "r") classes = f.readlines() f.close() classes = [c.replace('\n', '').replace(' ', '_') for c in classes] base = 'https://storage.googleapis.com/quickdraw_dataset/full/numpy_bitmap/' i = 0 for c in classes: cls_url = c.replace('_', '%20') path = base + cls_url + '.npy' print(path + " is Download" + str(i) + "/345\n") i += 1 request.urlretrieve(path, 'data/' + c + '.npy')