Skip to content

Instantly share code, notes, and snippets.

@wizardofzos
Created November 17, 2021 10:20
Show Gist options
  • Save wizardofzos/692fb2bc5c484e6ca023823b353a8ab7 to your computer and use it in GitHub Desktop.
Save wizardofzos/692fb2bc5c484e6ca023823b353a8ab7 to your computer and use it in GitHub Desktop.
import urllib2
import string
print "let's download all the GSEUK21 slides we can..."
#for i in string.digits:
for i in ['1','2','3','4','5','6']:
for a in ['A','B','C']:
for b in string.ascii_uppercase:
for ext in ['pdf', 'ppt', 'pptx', 'doc']:
deck = "%s%s%s.%s" % (i,a,b,ext)
url = "http://conferences.gse.org.uk/2021/presentations/%s" % deck
print "Trying to get %s" % url,
status = "ok"
try:
coolslidesdata = urllib2.urlopen(url)
except:
status = "meh"
print " Meh"
if status == "ok":
print " Gotcha!"
coolslides = coolslidesdata.read()
with open(deck, 'wb') as slidedeck:
slidedeck.write(coolslides)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment