title: Python - Get HTML Source Code of a Web Page
body: <p>I want to get the HTML source from a site ('example.com' for example).</p>
  
  <p>I tried the following:</p>
  
  <pre><code>import urllib2
  
  response = urllib2.urlopen("https://example.com")
  page_source = response.read()
  </code></pre>
  
  <p>It says:</p>
  
  <blockquote>
    <p>'No module named urllib2'</p>
  </blockquote>
  
  <p>How can I prevent this error?</p>