Beautiful Soup: get contents of search result tag
<p>Trying to get the contents of this type of html snippet using beautiful soup (it is a "tag" object).</p>

<pre><code>&lt;span class="font5"&gt; arrivesÂ at this calculation from the Torahâs report that the delugeÂ (rains) began on the 17&lt;sup&gt;th&lt;/sup&gt; day of the second monthÂ &lt;/span&gt;
</code></pre>

<p>I've tried:</p>

<pre><code>soup.contents.find_all('span')
soup.find_all('span')
soup.find_all(re.compile("font[0-9]+"))
soup.string
soup.child
</code></pre>

<p>And none of these seem to be working. What can I do?</p>

<pre><code>print ''.join(soup.findAll(text=True))
</code></pre>

<p>(answered <a href="http://stackoverflow.com/questions/2957013/beautifulsoup-just-get-inside-of-a-tag-no-matter-how-many-enclosing-tags-there">here</a>)</p>

python beautifulsoup