Created
June 6, 2015 15:44
-
-
Save BenTheHokie/c19d048650a62818a327 to your computer and use it in GitHub Desktop.
Kamkar.....
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
#!/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