title: Python read page from URL? Better documentation?
body: <p>I'm having quite a bit of trouble with Python's documentation. Is there anything like the Mozilla Developer Network for it?</p>
  
  <p>I'm doing a Python puzzle website and I need to be able to read the content of the page. I saw the following posted on a site:</p>
  
  <pre><code>import urllib2
  
  urlStr = 'http://www.python.org/'
  try:
    fileHandle = urllib2.urlopen(urlStr)
    str1 = fileHandle.read()
    fileHandle.close()
    print ('-'*50)
    print ('HTML code of URL =', urlStr)
    print ('-'*50)
  except IOError:
    print ('Cannot open URL %s for reading' % urlStr)
    str1 = 'error!'
  
  print (str1)
  </code></pre>
  
  <p>It keeps saying that there is no urllib2 module. </p>
  
  <p>The Python documentation says </p>
  
  <p><code>The urllib module has been split into parts and renamed in Python 3.0 to urllib.request, urllib.parse, and urllib.error. The 2to3 tool will automatically adapt imports when converting your sources to 3.0. Also note that the urllib.urlopen() function has been removed in Python 3.0 in favor of urllib2.urlopen().</code></p>
  
  <p>I tried importing urllib.request too, but it ssays urllib 2 is defined... WTF is going on here? </p>
  
  <p>Version 3.2.2</p>