title: I want to search div and <a> with specified class using beautifulsoup
body: <p>Hello everyone I am trying to using Beautifulsoup findall to get <code>&lt;div class="div1"&gt; content &lt;/div&gt;</code> and <code>&lt;a class="a1"&gt; link &lt;/a&gt;</code> at once.<br>
  I am just leaning beautifulsoup I know how this method link in <code>soup.find_all("div",{ "class" : "div1" }):</code> but how to get two different tags with specific class.</p>
  
  <p>can i do something like </p>
  
  <pre><code>for link in soup.find_all("div",{ "class" : "div1" } and "a",{"class" : "a1"}):
  </code></pre>
  
  <p>sample Html</p>
  
  <pre><code> &lt;div class="div1"&gt; content &lt;/div&gt;
   &lt;div class="div2"&gt; content &lt;/div&gt;
   &lt;div class="div3"&gt; content &lt;/div&gt;
  
   &lt;a class="a1"&gt; link &lt;/a&gt;
   &lt;a class="a2"&gt; link &lt;/a&gt;
   &lt;a class="a2"&gt; link &lt;/a&gt;
  </code></pre>
  
  <p>I searched alot but didn't find anything similar 
  thanks</p>