title: Filtering into specific class in BeautifulSoup
body: <p>I was doing something like this using BeautifulSoup:</p>
  
  <pre><code>for name in soup.find_all('div','name'):
  </code></pre>
  
  <p>When I am using this filter, my understanding is that I will get all the <code>div</code> tags with the attribute or class name <code>name</code>.</p>
  
  <p>However, I don't want every instance of the <code>div</code> tag with the attribute <code>name</code>. I want certain instances in which they locate in a certain subtree of the HTML file. More specifically, instances within the tag <code>&lt;u1 class="list-box mb-3 spacer"&gt;...&lt;u1\&gt;</code>, which is two levels above the tags I am looking for. So my question is, how would I write the filter in <code>soup.find_all()</code> to zoom into a class?</p>
  
  <p>I apologize in advance if I had mixed up any terminology. This is my first time attempting web scraping. I was not sure what to look at within the documentation.</p>
  
  <p>For reference, this is the website I am attempting to do web scraping on:
  <a href="http://pd.appbank.net/ml39" rel="nofollow noreferrer">http://pd.appbank.net/ml39</a></p>