title: Python Selenium Webdriver: how to select more than one element using get_attribute
body: <p>I'm trying to find the urls on a given page using the following:</p>
  
  <pre><code>driver.find_element_by_css_selector('.listing-title a').get_attribute('href')
  </code></pre>
  
  <p>This works well enough to grab the first url. However, I can't figure out how to get the other href attributes on the page. I tried adding an <code>s</code> to <code>element</code>:</p>
  
  <pre><code>driver.find_elements_by_css_selector('.listing-title a').get_attribute('href')
  </code></pre>
  
  <p>But I get the following error:</p>
  
  <pre><code>Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  AttributeError: 'list' object has no attribute 'get_attribute'
  </code></pre>
  
  <p>Any advice?</p>