Showing posts with label urllib. Show all posts
Showing posts with label urllib. Show all posts

Sunday, 25 May 2008

urllib

This has interesting implications used with shotreport.


import urllib
def downloadUrl(url):

data = urllib.urlopen(url)
return data.readlines()

url = 'http://www.pycode.com'
print downloadUrl(url)