title: what is the return value of BeautifulSoup.find?
body: <p>I run to get some value as score.</p>
  
  <pre><code>score = soup.find('div', attrs={'class' : 'summarycount'})
  </code></pre>
  
  <p>I run 'print score' to get as follows.</p>
  
  <pre><code>&lt;div class=\"summarycount\"&gt;524&lt;/div&gt;
  </code></pre>
  
  <p>I need to extract the number part. I used re module but failed.</p>
  
  <pre><code>m = re.search("[^\d]+(\d+)", score)
  </code></pre>
  
  <pre>
  TypeError: expected string or buffer
  
  function search in re.py at line 142
  return _compile(pattern, flags).search(string)
  </pre>
  
  <ul>
  <li>What's the return type of the find function?</li>
  <li>How to get the number from the score variable?</li>
  <li>Is there any easy way to let BeautifulSoup to return the value(in this case 524) itself?</li>
  </ul>