title: Python Beautiful Soup 'NavigableString' object has no attribute 'get_text'
body: <p>I'm trying to extract the text inside from the following html structure:</p>
  
  <pre><code>&lt;div class="account-places"&gt;
      &lt;div&gt;
          &lt;ul class="location-history"&gt;
              &lt;li&gt;&lt;/li&gt;
              &lt;li&gt;Text to extract&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I have the following BeautifulSoup code to do it:</p>
  
  <pre><code>from bs4 import BeautifulSoup as bs
  
  soup = bs(html, "lxml")
  div = soup.find("div", {"class": "account-places"})
  text = div.div.ul.li.next_sibling.get_text()
  </code></pre>
  
  <p>But Beautiful Soup is throwing the error: 'NavigableString' object has no attribute 'get_text'. What am I doing wrong?</p>