title: Python Selenium - get href value
body: <p>I am trying to copy the href value from a website, and the html code looks like this:</p>
  
  <pre><code>&lt;p class="sc-eYdvao kvdWiq"&gt;
   &lt;a href="https://www.iproperty.com.my/property/setia-eco-park/sale- 
   1653165/"&gt;Shah Alam Setia Eco Park, Setia Eco Park
   &lt;/a&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>I've tried <code>driver.find_elements_by_css_selector(".sc-eYdvao.kvdWiq").get_attribute("href")</code> but it returned <code>'list' object has no attribute 'get_attribute'</code>. Using <code>driver.find_element_by_css_selector(".sc-eYdvao.kvdWiq").get_attribute("href")</code> returned <code>None</code>. But i cant use xpath because the website has like 20+ href which i need to copy all. Using xpath would only copy one. </p>
  
  <p>If it helps, all the 20+ href are categorised under the same class which is <code>sc-eYdvao kvdWiq</code>.</p>
  
  <p>Ultimately i would want to copy all the 20+ href and export them out to a csv file.</p>
  
  <p>Appreciate any help possible.</p>