title: Price won't show up in the html parsing
body: <p>I'm trying to get the price of this object into a variable and print it out/put it in a CSV.</p>
  <p>This is the section of html that I am trying to parse:</p>
  <pre><code>&lt;span class=&quot;price&quot; data-js-product-price=&quot;&quot;&gt;
   &lt;span&gt;$429.00 USD&lt;/span&gt;
  &lt;/span&gt;
  </code></pre>
  <p>This is my python code (sorry im a little new to python and I've been trying to figure this out for a while, so sorry if the code is a little messy)</p>
  <pre><code>from bs4 import BeautifulSoup
  
  
  url_to_scrape = &quot;https://www.backfireboards.com/?gclid=CjwKCAjwjtOTBhAvEiwASG4bCGHPgmV4XjyqAIFrW0Lr0IiW0AvfTiC7sZ4E-HtM_qJ9k4ahAu2CHxoCH5YQAvD_BwE&quot;
  
  request_page = urlopen(url_to_scrape)
  page_html = request_page.read()
  request_page.close()
  
  html_soup = BeautifulSoup(page_html, 'html.parser')
  
  board_prices = html_soup.find_all('span', class_='price')
  
  print(&quot;num of prices: &quot; + str(len(board_prices)))
  file_name = 'product.csv'
  f = open(file_name,'w')
  
  headers = 'Title, Price \n'
  
  f.write(headers)
  
  i = 1
  
  for price in board_prices:
      currPrice = price.span.text
      print(i)
      i = i + 1
      print(price)
      print(currPrice)
  
  
  f.close()
  </code></pre>
  <p>Here is the error that I am getting:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/Users/isaiah/PycharmProjects/Web_scrape/main.py&quot;, line 26, in &lt;module&gt;
      currPrice = price.span.text
  AttributeError: 'NoneType' object has no attribute 'text'
  </code></pre>
  <p>I know this isn't a text object but when I print it without the .text it spits out this:</p>
  <pre><code>1
  &lt;span class=&quot;price&quot; data-js-popup-cart-subtotal=&quot;&quot;&gt;&lt;/span&gt;
  None
  2
  &lt;span class=&quot;price&quot; data-js-product-price=&quot;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span&gt;&lt;/span&gt;
  3
  &lt;span class=&quot;price&quot; data-js-product-price=&quot;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span&gt;&lt;/span&gt;
  4
  &lt;span class=&quot;price&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span&gt;&lt;/span&gt;
  5
  &lt;span class=&quot;price&quot; data-js-product-price=&quot;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span&gt;&lt;/span&gt;
  6
  &lt;span class=&quot;price&quot; data-js-product-price=&quot;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span&gt;&lt;/span&gt;
  </code></pre>
  <p>I don't know why the $429 is disappearing in the object, im a little new to webscraping and such. Is there something very simple I am ignorant too?</p>
  <p>Also, from what I can tell the website actually has 8 prices listed on this page that i am pulling from yet the board_prices object is only size 6? Could someone explain that to me as well?</p>