# coding: latin-1 def get_page_html (url): import urllib d = urllib.urlopen(url) res = d.read () d.close () return res url = "http://www.lemonde.fr" print get_page_html (url)