Last active
August 29, 2015 14:12
-
-
Save rebeccawilliams/5698b255e8c7b63f2c7c to your computer and use it in GitHub Desktop.
get all of the data in many files
This file contains 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 urllib | |
dataset = 137 | |
url = 'http://catalog.data.gov/api/3/action/package_search?rows=1000&start=%s' % (dataset) | |
while dataset > 0: | |
print "downloading all the Data.gov metadata" | |
urllib.urlretrieve(url, "datagov%s.json" % (dataset)) | |
dataset = dataset - 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment