Skip to content

Instantly share code, notes, and snippets.

@BenTheHokie
Created June 6, 2015 15:44
Show Gist options
  • Save BenTheHokie/c19d048650a62818a327 to your computer and use it in GitHub Desktop.
Save BenTheHokie/c19d048650a62818a327 to your computer and use it in GitHub Desktop.
Kamkar.....
#!/usr/bin/env python
import re
import urllib2
page0 = urllib2.urlopen('http://www.samy.pl/').read()
source = re.search('\\*\\/\\/([ \t]+)',page0).group(1)
source = source.replace(' ','0').replace('\t','1')
html = ""
for i in range(len(source)/7):
add = chr(int(source[7*i : 7*(i+1)], 2))
html += add
print html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment