title: Use BeautifulSoup to extract text before the first child tag
body: <p>From this html source:</p>
  
  <pre><code>&lt;div class="category_link"&gt;
    Category:
    &lt;a href="/category/personal"&gt;Personal&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I wish to extract the text <code>Category:</code></p>
  
  <p>Here are my attempts using Python/BeautifulSoup (with output as comment - after the #)</p>
  
  <pre><code>parsed = BeautifulSoup(sample_html)
  parsed_div = parsed.findAll('div')[0]
  parsed_div.firstText() # &lt;a href="/category/personal"&gt;Personal&lt;/a&gt;
  parsed_div.first() # &lt;a href="/category/personal"&gt;Personal&lt;/a&gt;
  parsed_div.findAll()[0] # &lt;a href="/category/personal"&gt;Personal&lt;/a&gt;
  </code></pre>
  
  <p>I'd expect a "text node" to be available as the first child. Any suggestions on how I can solve this?</p>