title: Beautiful Soup and extracting a div and its contents by ID
body: <pre><code>soup.find("tagName", { "id" : "articlebody" })
  </code></pre>
  
  <p>Why does this NOT return the <code>&lt;div id="articlebody"&gt; ... &lt;/div&gt;</code> tags and stuff in between? It returns nothing. And I know for a fact it exists because I'm staring right at it from </p>
  
  <pre><code>soup.prettify()
  </code></pre>
  
  <p><code>soup.find("div", { "id" : "articlebody" })</code> also does not work.</p>
  
  <p>(<strong>EDIT:</strong> I found that BeautifulSoup wasn't correctly parsing my page, which probably meant the page I was trying to parse isn't properly formatted in SGML or whatever)</p>