Last active
November 12, 2019 20:36
-
-
Save wizardofzos/7692156611231c3f338efc77677ac384 to your computer and use it in GitHub Desktop.
Download all the GSEUK19 slides
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 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