title: How to use python beautiful soup to get only the level 1 navigableText?
body: <p>I am using beautiful soup to get the text from this example html code:</p>
  
  <pre><code>....
  &lt;div style="s1"&gt;
      &lt;div style="s2"&gt;Here is text 1&lt;/div&gt;
      &lt;div style="s3"&gt;Here is text 2&lt;/div&gt;
  Here is text 3 and this is what I want.
  &lt;/div&gt;
  ....
  </code></pre>
  
  <p>Text 1 and text 2 is at the same level 2 and the text 3 is at the upper level 1. I only want to get the text 3 and used this:</p>
  
  <pre><code>for anchor in tbody.findAll('div', style="s1"):
      review=anchor.text
      print review
  </code></pre>
  
  <p>But these code get me all the text 1,2,3. How do I only get the first level text 3?</p>