title: Select all divs except ones with certain classes in BeautifulSoup
body: <p>As discussed in <a href="https://stackoverflow.com/questions/51588952/beautifulsoup-find-all-div-tags-with-different-class-name">this question</a> one can easily get all <code>div</code>s with certain classes. But here, I have a list of classes that I want to exclude &amp; want to get all divs that doesn't have any class given in the list.</p>
  
  <p>For i.e.</p>
  
  <pre><code>classToIgnore = ["class1", "class2", "class3"]
  </code></pre>
  
  <p>Now want to get all divs that doesn't contains the classes mentioned above list. How can i achieve that? </p>