Skip to content

Instantly share code, notes, and snippets.


jezinka/ Secret

Created Jul 29, 2017
What would you like to do?
import re
import urllib
param = str(12345)
while (True):
url = "" + param
page_content = urllib.urlopen(url).read()
print page_content
param = re.findall("nothing is (\d+)", page_content)[0]
except IndexError:
if page_content.endswith('.html'):
param = str(int(param)/2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment