Created
May 22, 2017 21:12
-
-
Save pnettto/3294f84a14fee6a85c8a56fbdb9f501c to your computer and use it in GitHub Desktop.
Download images from csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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