Skip to content

Instantly share code, notes, and snippets.

@kdawgwilk
Last active December 15, 2015 09:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kdawgwilk/c66dfcf04dcee7fef84b to your computer and use it in GitHub Desktop.
Save kdawgwilk/c66dfcf04dcee7fef84b to your computer and use it in GitHub Desktop.
CS-2420 Download Sample Student Lists
# Downloads all the sample txts to the directory where this script is ran
import urllib
files = ["InsertNames.txt", "DeleteNames.txt", "RetrieveNames.txt", "InsertNamesMedium.txt", "DeleteNamesMedium.txt",
"RetrieveNamesMedium.txt", "InsertNamesBig.txt", "DeleteNamesBig.txt", "RetrieveNamesBig.txt"]
for filename in files:
url = "http://cit.cs.dixie.edu/cs/2420/ssn/%s" % filename
file_from_url = urllib.URLopener()
file_from_url.retrieve(url, filename)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment