Skip to content

Instantly share code, notes, and snippets.

@darrenparkinson
Created August 27, 2014 11:15
Show Gist options
  • Save darrenparkinson/c5c82dbd973540a61f93 to your computer and use it in GitHub Desktop.
Save darrenparkinson/c5c82dbd973540a61f93 to your computer and use it in GitHub Desktop.
Download Jabber Release Notes listed in CSV file
import csv # for reading the csv file of files
import urllib # for downloading the file
with open('Jabber.csv', 'rb') as csvfile:
filereader = csv.reader(csvfile, delimiter=',')
for row in filereader:
original_filename = row[1].split('/')[-1]
new_filename = row[0] + ' ' + original_filename
print 'Retrieving : ' + new_filename
urllib.urlretrieve(row[1], new_filename )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment