Skip to content

Instantly share code, notes, and snippets.

@GOFAI
GOFAI / cylinder-machine.py
Created October 20, 2015 04:17
Python script to download contents of UCSB cylinder archive
# Download contents of UCSB cylinder archive
from urllib2 import urlopen, HTTPError
from shutil import copyfileobj
from os import getcwd
directory = getcwd() # Change to download cylinders to elsewhere than in current working directory
maximum = 20000 # Edit to change maximum number of cylinders
def cylinder_filename(number):