Skip to content

Instantly share code, notes, and snippets.

@richardcsuwandi
Last active July 31, 2020 13:00
Show Gist options
  • Save richardcsuwandi/88281f8a006290e947483b8a8103fca4 to your computer and use it in GitHub Desktop.
Save richardcsuwandi/88281f8a006290e947483b8a8103fca4 to your computer and use it in GitHub Desktop.
Download and verify images from csv files.
path = Path('<path>')
for file, folder in [('caoshu.csv', 'caoshu'), ('kaishu.csv', 'kaishu'),
('lishu.csv', 'lishu'), ('zhuanshu.csv', 'zhuanshu')]:
dest = path/folder # path + '/' + folder
dest.mkdir(parents=True, exist_ok=True)
download_images(path/file, dest)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment