title: Python BeautifulSoup extract text between element
body: <p>I try to extract "THIS IS MY TEXT" from the following HTML:</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;table&gt;
     &lt;td class="MYCLASS"&gt;
        &lt;!-- a comment --&gt;
        &lt;a hef="xy"&gt;Text&lt;/a&gt;
        &lt;p&gt;something&lt;/p&gt;
        THIS IS MY TEXT
        &lt;p&gt;something else&lt;/p&gt;
        &lt;/br&gt;
     &lt;/td&gt;
  &lt;/table&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I tried it this way:</p>
  
  <pre><code>soup = BeautifulSoup(html)
  
  for hit in soup.findAll(attrs={'class' : 'MYCLASS'}):
      print hit.text
  </code></pre>
  
  <p>But I get all the text between all nested Tags plus the comment. </p>
  
  <p>Can anyone help me to just get "THIS IS MY TEXT" out of this?</p>