title: Reading a page and parsing it with minidom.parse or minidom.parseString in Python?
body: <p>I have either of these codes:</p>
  
  <pre><code>import urllib
  from xml.dom import minidom
  res = urllib.urlopen('https://www.google.com/webhp#q=apple&amp;start=10')
  dom = minidom.parse(res)
  </code></pre>
  
  <p>which gives me the error <code>xml.parsers.expat.ExpatError: syntax error: line 1, column 0</code></p>
  
  <p>Or this:</p>
  
  <pre><code>import urllib
  from xml.dom import minidom
  res = urllib.urlopen('https://www.google.com/webhp#q=apple&amp;start=10')
  dom = minidom.parseString(res.read())
  </code></pre>
  
  <p>which gives me the same error. <code>res.read()</code> reads fine and is a string.</p>
  
  <p>I would like to parse through the code later. How can I do this using <code>xml.dom.minidom</code>?</p>