Monday, 18 April 2011

Python script to get the webpage source

Here is the python script to get the source code of any web page..all you need is to edit the url in the script.

import urllib

filehandle = urllib.urlopen('http://www.techyupdates.blogspot.com')

for lines in filehandle.readlines():
   print lines

filehandle.close()