title: How can I use BeautifulSoup to get deeply nested div values?
body: <p>I need to get the values of deeply nested <code>&lt;span&gt;</code> elements in a DOM structure that looks like this:</p>
  
  <pre><code>&lt;div class="panda"&gt;
      &lt;div class="that"&gt;
          &lt;ul class="foo"&gt;
              &lt;li class="bar"&gt;
                  &lt;div class="hi"&gt;
                      &lt;p class="bye"&gt;
                          &lt;span class="cheese"&gt;Cheddar&lt;/span&gt;
  </code></pre>
  
  <p>The problem with </p>
  
  <p><code>soup.findAll("span", {"class": "cheese"})</code></p>
  
  <p>is that there are hundreds of span elements on the page with class "cheese" so I need to filter them by class "panda". I need to get a list of values like <code>["Cheddar", "Parmesan", "Swiss"]</code></p>