title: Parse static HTML file with Python
body: <p>So I have a static HTML file somewhere on my hard drive that I want to extract source code from using Python. I tried the urllib2 but i am getting an error that says urlopen error unknown url type. I am guessing its because my URL was actually a destination on hard drive rather than a valid HTTP address. How can i extract that code? Here's what I tried:</p>
  
  <pre><code>import urllib2
  url = "C:\Program Files\Whatever Folder\Whatever.html"
  file = urllib2.urlopen(url)
  data = file.read()
  
  OUT = data
  </code></pre>