title: get attribute value BeautifulSoup
body: <p>I have a list of elements that I have extracted from a web-page:</p>
  
  <pre><code>property_list_items = soup.find_all("li", class_="hover propertyCard property-data-elem clickable")
      if len(property_list_items) &gt; 0:
          for property_item in property_list_items:
              print property_item.meta['content']
              print soup(itemprop="geo")[0].get_text()
  </code></pre>
  
  <p><code>property_item</code> element starts like this:</p>
  
  <pre><code>&lt;li class="hover propertyCard property-data-elem clickable" data-city="Atlanta" data-feed-id="12310" data-list-index="0" data-location-id="52412" data-property-id="9000022319" data-property-state-code="GA" data-property-status="For Rent" id="propertyAnchor_0" itemscope="" itemtype="http://schema.org/ApartmentComplex"&gt;
  &lt;div itemprop="geo" itemscope="" itemtype="http://schema.org/GeoCoordinates"&gt;
    &lt;meta content="33.82555" itemprop="latitude"/&gt;
    &lt;meta content="-84.33807" itemprop="longitude"/&gt;
  &lt;/div&gt;
  ...
  </code></pre>
  
  <p>Now, when I iterate over all elements from alist, I want to extract specific information that is stored in an attribute - geographical coordinates. </p>
  
  <p>I want to say smth like this:
  <code>property_item['latitude']</code> and get the value <code>33.82555</code></p>
  
  <p>However, so far I have had no luck. <code>property_item.meta['content']</code> results in only the first "value" (33.82555), and <code>soup(itemprop="geo")[0].get_text()</code> return empty result.</p>
  
  <p>I want to be able to parse a SPECIFIC element one at a time, preferably without using <code>find_all()</code> (if it is at all possible) because <code>latitude</code> and <code>longitude</code> only make sense in context of specific property, and I will also need to relate them to a property id, etc.</p>
  
  <p>Sorry in advance for a newbie question. </p>