import urllib fun open(): return urllib.urlopen(\'http://example.com\')
But when example.com opens it does not render css or js. How can I ope
You have to read the data too.
Check out : http://www.doughellmann.com/PyMOTW/urllib2/ to understand it.
response = urllib2.urlopen(..) headers = response.info() data = response.read()
Of course, what you want is to render it in browser and aaronasterling's answer is what you want.