Skip to content

Instantly share code, notes, and snippets.

@melowody
Created November 20, 2017 20:05
Show Gist options
  • Select an option

  • Save melowody/11985b6a0ce377e4477df3048aaab107 to your computer and use it in GitHub Desktop.

Select an option

Save melowody/11985b6a0ce377e4477df3048aaab107 to your computer and use it in GitHub Desktop.
import urllib.request, random
y = 0
while(True):
x = random.randint(0,40000000)
try:
fp = urllib.request.urlopen("http://gdidthingpython.000webhostapp.com/thing.php?id=" + str(x))
mybytes = fp.read()
mystr = mybytes.decode("utf8")
fp.close()
z = mystr.split("hl hl")
except:
print()
if("Level Not Found" not in mystr):
print(x)
y += 1
@ThybeVB
Copy link

ThybeVB commented Jun 23, 2018

Ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment