title: scrape the value from a dropdown
body: <p>I am trying to web scrape the value and text from a dropdown element on a webpage using a combination of Python with selenium and Beautiful Soup. </p>
  
  <p>I am able to get the text but I am not able to get the value through the <code>get_attribute</code> command. </p>
  
  <p>When I print the element that I located on the webpage it returns the following content </p>
  
  <p><img src="https://i.stack.imgur.com/xFvWb.png" alt="print(price)"> </p>
  
  <p>The print statement that gets it gives the error:</p>
  
  <pre><code>None Type object is not callable
  
  price=soup.find("select",{"id":"space-prices"})
  print(price)
  print(price.text)
  print(price.get_attribute('value'))
  </code></pre>
  
  <p>The output for print(price) is </p>
  
  <pre><code>&lt;select class="pricing-bar-select" id="space-prices" name="space-prices"&gt;&lt;option selected="selected" value="£360"&gt;Per Day&lt;/option&gt;
  &lt;option value="£1,260"&gt;Per Week&lt;/option&gt;
  &lt;option value="£5,460"&gt;Per Month&lt;/option&gt;
  &lt;option value="£16,380"&gt;Per Quarter&lt;/option&gt;
  &lt;option value="£65,520"&gt;Per Year&lt;/option&gt;&lt;/select&gt;
  </code></pre>
  
  <p>The URL of the webpage is </p>
  
  <p><a href="https://www.appearhere.co.uk/spaces/north-kensington-upcycling-store-and-cafe" rel="nofollow noreferrer">https://www.appearhere.co.uk/spaces/north-kensington-upcycling-store-and-cafe</a></p>