import urllib2 url = 'http://google.com' usock = urllib2.urlopen(url) data = usock.read() usock.close() print data
Coding is one of my job from 2001. I have written codes for many projects but I cannot remember all of them. I hope this blog help me do that.