title: How to find an html tag without an id or class name using BeautifulSoup?
body: <p>I am able to access the contents of an html tag when it has an id associated with it, but cannot find html tags without ids. </p>
  
  <p>I am able to access the content I need when an id exists:</p>
  
  <pre><code>&lt;div id="anything"&gt; 
    &lt;div class="anything"&gt;
    What I need
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>But if the tag looks like this:</p>
  
  <pre><code>&lt;div id="anything"&gt;
    &lt;div&gt;
      &lt;div class="something"&gt;
        What I need 
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I cannot find it using .findAll, .find_next_sibling, or .children
  I tried tfinding it the following way: </p>
  
  <pre><code>x = soup.find('div', attrs ={'id':'anything'}) 
  type(x.div) 
  print(x.div.text)
  </code></pre>
  
  <p>But type(x.div) returns NoneType....???</p>
  
  <pre><code>for foo in soup.find_all('div', attrs={'id': 'anything'}):
      bar = foo.find('div', attrs={'class': 'anything'})
      print(bar.contents[0].text)
  </code></pre>
  
  <p>This prints "What I need" in the first html block, but not the second</p>
  
  <p>This works on tags with an ID, but I cannot find a way to make it work to find div without ID</p>