Skip to content

Instantly share code, notes, and snippets.

@katrina376
Created March 9, 2017 02:19
Show Gist options
  • Save katrina376/cc611cbe442776fc682202ec028120de to your computer and use it in GitHub Desktop.
Save katrina376/cc611cbe442776fc682202ec028120de to your computer and use it in GitHub Desktop.
Handy Toolkit
import urllib.request
file_list = [
{ 'url': '<url>', 'name': 'name', 'type': 'type'},
# ...
]
for f in file_list:
urllib.request.urlretrieve(f['url'], f['name'] + f['type'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment