Skip to content

Instantly share code, notes, and snippets.

@pnettto
Created May 22, 2017 21:12
Show Gist options
  • Save pnettto/3294f84a14fee6a85c8a56fbdb9f501c to your computer and use it in GitHub Desktop.
Save pnettto/3294f84a14fee6a85c8a56fbdb9f501c to your computer and use it in GitHub Desktop.
Download images from csv
# Download images from csv
with open('file.csv', 'rb') as myFile:
reader = csv.reader(myFile, delimiter=',')
for row in reader:
if row[5] != 'Images':
command = 'wget ' + row[5].split('?')[0]
subprocess.Popen(command.split(), stdout=subprocess.PIPE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment