title: How to separate tags containing children tags from the empty ones in Beautiful Soup 4?
body: <pre><code>&lt;a id="filepos10190"&gt;&lt;/a&gt;
  &lt;a id="filepos10190"&gt;
  
  &lt;font size="6" color="#002984"&gt;&lt;b&gt;abashed &lt;/b&gt;&lt;/font&gt; &lt;div width="9"&gt;&lt;i&gt; 
  &lt;font color="green"&gt; adj.&lt;/font&gt;&lt;/i&gt;&lt;/div&gt; &lt;div width="18"&gt;&lt;font 
  color="chocolate"&gt;&lt;b&gt;VERBS &lt;/b&gt;&lt;/font&gt;&lt;/div&gt; &lt;div width="27"&gt;&lt;font 
  color="gray"&gt;▪&lt;/font&gt; &lt;font color="darkslateblue"&gt;&lt;b&gt;be&lt;/b&gt;&lt;/font&gt;, &lt;font 
  color="darkslateblue"&gt;&lt;b&gt;look&lt;/b&gt;&lt;/font&gt;&lt;/div&gt; &lt;div width="18"&gt;&lt;font 
  color="chocolate"&gt;&lt;b&gt;ADVERB &lt;/b&gt;&lt;/font&gt;&lt;/div&gt; &lt;div width="27"&gt;&lt;font 
  color="gray"&gt;▪&lt;/font&gt; &lt;font color="darkslateblue"&gt;&lt;b&gt;a little&lt;/b&gt;&lt;/font&gt;, 
  &lt;font color="darkslateblue"&gt;&lt;b&gt;slightly&lt;/b&gt;&lt;/font&gt;, &lt;font 
  color="darkslateblue"&gt;&lt;b&gt;etc.&lt;/b&gt;&lt;/font&gt;&lt;/div&gt; &lt;div width="27"&gt;&lt;font 
  color="gray"&gt;▪&lt;/font&gt; &lt;font color="darkslateblue"&gt;&lt;b&gt;suitably&lt;/b&gt;&lt;/font&gt; 
  &lt;/div&gt; &lt;div width="36"&gt;&lt;font color="lightgray"&gt;▪&lt;/font&gt; &lt;span&gt;&lt;font 
  color="#595959"&gt;He glanced at Juliet accusingly and she looked suitably 
  &lt;u&gt;~&lt;/u&gt;.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt; 
  
  &lt;/a&gt;
  </code></pre>
  
  <p>Here are two anchor tags, one with nothing inside whereas other with lots of children. How to separate these two while scraping, if I want only the one with tags inside?</p>