Created
July 1, 2012 12:11
-
-
Save robyoung/3028222 to your computer and use it in GitHub Desktop.
Retrieve the data
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
import urllib2 | |
import csv | |
def retrieve_data(url): | |
file = urllib2.urlopen(URL) | |
reader = csv.DictReader(file) | |
data = [] | |
for row in reader: | |
data.append(row) | |
return data | |
data = retrieve_data("https://docs.google.com/spreadsheet/pub?key=0Ar9L6jllB7SPdEJLTkNRRHBZcDcxaktyTVgwZXkyRlE&single=true&gid=0&output=csv") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment