Python Tutorial

Thursday, October 28, 2010

Python fetch URL

'''
    This code use python urllib2 syntax
    - This code use for download a page
'''

import urllib2
u="http://www.sust.edu"
f = urllib2.urlopen(u)
data=f.read()
f.close()
print data;

0 comments:

Post a Comment