title: accessing html elements BeautifulSoup Python2.7
body: <p>I'm having trouble getting all of this html's href class attribute value in a list. I'm not sure what I'm doing wrong, I can't even access the reference.</p>
  
  <p>The below is a snippit of what I'm trying to parse: </p>
  
  <pre><code> &lt;!-- &lt;div class="container"&gt;
      &lt;div class="row"&gt;
          &lt;div class="col-xs-12 col-md-offset-2 col-md-8 col-md-offset-2"&gt;
              &lt;div id='location_list'&gt;&lt;h2&gt;Browse by location&lt;/h2&gt;&lt;ol class='suburb_locations'&gt;&lt;div class="row"&gt;&lt;li class="col-sm-3"&gt;&lt;a href="http://www.carnextdoor.com.au/car-rental/nsw/abbotsford-nsw"&gt;abbotsford, NSW&lt;/a&gt;&lt;br&gt;&lt;span class="sub_title"&gt;0  active owners&lt;/span&gt;&lt;span class="sub_title"&gt;0  active borrowers&lt;/span&gt;&lt;/li&gt;&lt;li class="col-sm-3"&gt;&lt;a href="http://www.carnextdoor.com.au/car-rental/vic/abbotsford-vic"&gt;abbotsford, VIC&lt;/a&gt;&lt;br&gt;&lt;span class="sub_title"&gt;0  active owners&lt;/span&gt;&lt;span class="sub_title"&gt;0  active borrowers&lt;/span&gt;
  </code></pre>
  
  <p>I'm trying to get a dict of key=place and the value = number of active borrowers in one list. And a list that contains the href values. My biggest problem is that I'm not able to access any of these siblings. I've tried a lot of things below is a list of a few codes I've been trying:    </p>
  
  <pre><code>    from bs4 import Beautiful Soup   
      soup=BeautifulSoup(html,"html5lib")
      print soup.find_all('br')
      print soup.find_all('div h2 ol li')
      print soup.find('li',{'class':"col-sm-3"})
  </code></pre>