Start New Discussion within our Software Development Community

This is a program using the urllib module to find the (html/any client-side script) source code of any website which exists.
Have fun!

HTMLperson5
Deleted Member
import urllib
sourcecode = urllib.urlopen("http://www.any-website.com").read() #Replace any-website with whatever you like
print sourcecode

if you want it to work with every site,I guess you need to consider the encoding too:

print sourcecode.decode("utf8")