Skip to content

Instantly share code, notes, and snippets.

@wizardofzos
Last active November 12, 2019 20:36
Show Gist options
  • Save wizardofzos/7692156611231c3f338efc77677ac384 to your computer and use it in GitHub Desktop.
Save wizardofzos/7692156611231c3f338efc77677ac384 to your computer and use it in GitHub Desktop.
Download all the GSEUK19 slides
import urllib2
import string
print "let's download all the GSEUK19 slides we can..."
for a in string.ascii_uppercase:
for b in string.ascii_uppercase:
for ext in ['pdf', 'ppt', 'pptx', 'doc']:
deck = "%s%s.%s" % (a,b,ext)
url = "http://conferences.gse.org.uk/2019/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