Skip to content

Instantly share code, notes, and snippets.

Created May 5, 2012 01:43
What would you like to do?
Learning Python
# Import needed libraries.
import csv, urllib2
# Retrieve the contents of the CSV report file
csv_file = urllib2.urlopen('').read()
# Convert the contents of the CSV file to a list.
# (Shouldn't this use a try / except?)
Report = csv.reader(csv_file)
# Iterate through the report and display each line, joined by commas.
for row in Report:
print row
$ python
['', '']
['', '']
['', '']
['', '']
['', '']
['', '']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment