title: Going through HTML DOM in Python
body: <p>I'm looking to write a Python script (using 3.4.3) that grabs a HTML page from a URL and can go through the DOM to try to find a specific element.</p>
  
  <p>I currently have this:</p>
  
  <pre><code>#!/usr/bin/env python
  import urllib.request
  
  def getSite(url):
      return urllib.request.urlopen(url)
  
  if __name__ == '__main__':
      content = getSite('http://www.google.com').read()
      print(content)
  </code></pre>
  
  <p>When I print content it does print out the entire html page which is something close to what I want... although I would ideally like to be able to navigate through the DOM rather then treating it as a giant string.</p>
  
  <p>I'm still fairly new to Python but have experience with multiple other languages (mainly Java, C#, C++, C, PHP, JS).  I've done something similar with Java before but wanted to try it out in Python.</p>
  
  <p>Any help is appreciated.
  Cheers!</p>