title: urllib keeps freezing while trying to pull HTML data from a website - is my code correct?
body: <p>I'm trying to build a simple Python script algorithm on Mac OS X that has four parts to it.</p>
  
  <ol>
  <li>go to a defined website and grab all the HTML using <code>urllib</code></li>
  <li>parse the HTML data to find a table of numbers (using <code>beautifulsoup</code>)</li>
  <li>with those numbers do a simple calculation</li>
  <li>print out the results in a table in numerical order</li>
  </ol>
  
  <p>I'm having trouble with step 1, i can grab the data with <code>urllib</code> using this code</p>
  
  <pre><code>import urllib.request
  y=urllib.request.urlopen('my target website url')
  x=y.read()
  print(x)
  </code></pre>
  
  <p>But it keeps freezing once it has returned the HTML and the Python shell is non-responsive.</p>