title: Python Beautiful Soup find tag with exact string value of the class
body: <p>I tried for hours to find a solution, the code I found either returns all tags that contain one of the classes I try to match, or contains all my classes but with some extra classes in it, but I want the classes to be match EXACTLY. </p>
  
  <p>The following solution didn't work for me as it supposes to:</p>
  
  <p>You can also search for the exact string value of the class attribute:</p>
  
  <pre><code>css_soup.find_all("p", class_="body strikeout")
  </code></pre>
  
  <p>I can get the following tag from <code>HTML sample</code>, locally, but can't for the page I requested in <code>Complete code</code> section:</p>
  
  <pre><code>&lt;ul class="mvn listInline"&gt;..&lt;/ul&gt; 
  </code></pre>
  
  <p>HTML sample:</p>
  
  <pre><code>&lt;ul class="mvn listInline"&gt; 
      &lt;li class="mbn h4 typeEmphasize"&gt;$325,000&lt;/li&gt;
      &lt;li class="mbn h7"&gt;
           3 bd 2 ba 2,080 sqft 
      &lt;/li&gt;
  &lt;/ul&gt;
  
  &lt;ul class="mvn listInline withotherclasses"&gt; 
       &lt;li class="mbn h4 typeEmphasize"&gt;$325,000&lt;/li&gt;
       &lt;li class="mbn h7"&gt;
           3 bd 2 ba 2,080 sqft
       &lt;/li&gt;
  &lt;/ul&gt;
  
  &lt;ul class="mvn onlymvn"&gt; 
       &lt;li class="mbn h4 typeEmphasize"&gt;$325,000&lt;/li&gt;
       &lt;li class="mbn h7"&gt;
           3 bd 2 ba 2,080 sqft
       &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>Complete Code:</p>
  
  <pre><code>page = requests.get('http://www.trulia.com/for_sale/Anchorage,AK/2_p')
  soup_page = BeautifulSoup(page.text,'html.parser') 
  
  for ul in soup_page.find_all("ul", class_="mvn listInline"):
      print ul 
  </code></pre>