Read HTML from URL

Question is how to read HTML from some URL in Python. Here is the answer:

try:
  r = urllib2.urlopen(url)
except: 
  print "Unexpected error, looks that URL isn't available or doesn't exist."
  sys.exit(0)
html = r.read()

tags: & category: -