Skip to content

Instantly share code, notes, and snippets.

@cvrebert
Created January 19, 2012 02:54
Show Gist options
  • Save cvrebert/1637377 to your computer and use it in GitHub Desktop.
Save cvrebert/1637377 to your computer and use it in GitHub Desktop.
So, I took CSE 127...
#!/usr/bin/env python
# Background: http://cses.ucsd.edu/pokemon/ & http://cseweb.ucsd.edu/classes/fa11/cse127-a/
from urllib import urlopen, urlencode
url = "http://cses.ucsd.edu/pokemon/submitemail.php"
for n in range(1, 1000):
data = urlencode({"email":"[email protected]", "pokemonid":str(n), "submit":"Catch!"})
f = urlopen(url, data)
result = f.read()
f.close()
print(result) # if you want
# Hopefully this loophole will be closed soon. :-)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment