title: Select specific child elements with BeautifulSoup
body: <p>I'm reading up on BeautifulSoup to screen-scrape some pretty heavy html pages. Going through the documentation of BeautifulSoup I can't seem to find a easy way to select child elements.</p>
  
  <p>Given the html:</p>
  
  <pre><code>&lt;div id="top"&gt;
    &lt;div&gt;Content&lt;/div&gt;
    &lt;div&gt;
      &lt;div&gt;Content I Want&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I want a easy way to to get the "Content I Want" given I have the object top. Coming to BeautifulSoup I thought it would be easy, and something like topobj.nodes[1].nodes[0].string. Instead I only see variables and functions that also return the elements together with text nodes, comments and so on. </p>
  
  <p>Am I missing something? Or do I really need to resort to a long form using .find() or even worse using list comphrensions on the .contents variable.</p>
  
  <p>The reason is that I don't trust the whitespace of the webpage to be the same so I want to ignore it and only traverse on elements.</p>