title: Can I combine two 'findAll' search blocks in beautifulsoup, into one?
body: <p>Can I combine these two blocks into one:</p>
  
  <p>Edit: Any other method than combining loops like Yacoby did in the answer.</p>
  
  <pre><code>for tag in soup.findAll(['script', 'form']):
      tag.extract()
  
  for tag in soup.findAll(id="footer"):
      tag.extract()
  </code></pre>
  
  <p>Also can I multiple blocks into one:</p>
  
  <pre><code>for tag in soup.findAll(id="footer"):
      tag.extract()
  
  for tag in soup.findAll(id="content"):
      tag.extract()
  
  for tag in soup.findAll(id="links"):
      tag.extract()
  </code></pre>
  
  <p>or may be there is some lambda expression where I can check whether in array, or any other simpler method.</p>
  
  <p>Also how do I find tags with attribute class, as class is reserved keyword:</p>
  
  <p>EDIT: this part is solved by the soup.findAll(attrs={'class': 'noprint'}):</p>
  
  <pre><code>for tag in soup.findAll(class="noprint"):
      tag.extract()
  </code></pre>