Beautiful Soup [Python] and the extracting of text in a table
<p>i am new to Python and to Beatiful Soup also! I heard about BS. It is told to be a great tool to parse and extract content. So here i am...: </p>

<p>I want to take the content of the first td of a table in a html
document. For example, i have this table</p>

<pre><code>&lt;table class="bp_ergebnis_tab_info"&gt;
    &lt;tr&gt;
            &lt;td&gt;
                     This is a sample text
            &lt;/td&gt;

            &lt;td&gt;
                     This is the second sample text
            &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>How can i use beautifulsoup to take the text "This is a sample text"?
I use soup.findAll('table' ,attrs={'class':'bp_ergebnis_tab_info'}) to get
the whole table.</p>

<p>Thanks... or should i try to get  the whole stuff with Perl ... which i am not so familiar with. Another soltion would be a regex in PHP. </p>

<p>See the target  [1]: <a href="http://www.schulministerium.nrw.de/BP/SchuleSuchen?action=799.601437941842&amp;SchulAdresseMapDO=142323" rel="nofollow">http://www.schulministerium.nrw.de/BP/SchuleSuchen?action=799.601437941842&amp;SchulAdresseMapDO=142323</a></p>

<p>Note; since the html is a  bit invalid - i think that we have to do some cleaning. That can cause a lot of PHP code - since we want to solve the job in PHP. Perl would be a good solution too. </p>

<p>Many thanks for some hints and ideas for a starting point
zero</p>
