title: How to find children of nodes using BeautifulSoup
body: <p>I want to get all the <code>&lt;a&gt;</code> tags which are children of <code>&lt;li&gt;</code>:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div&gt;
  &lt;li class="test"&gt;
      &lt;a&gt;link1&lt;/a&gt;
      &lt;ul&gt; 
         &lt;li&gt;  
            &lt;a&gt;link2&lt;/a&gt; 
         &lt;/li&gt;
      &lt;/ul&gt;
  &lt;/li&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I know how to find element with particular class like this:</p>
  
  <pre><code>soup.find("li", { "class" : "test" }) 
  </code></pre>
  
  <p>But I don't know how to find all <code>&lt;a&gt;</code> which are children of <code>&lt;li class=test&gt;</code> but not any others.</p>
  
  <p>Like I want to select:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;a&gt;link1&lt;/a&gt;
  </code></pre>