title: Beautiful Soup tag behaving strangely
body: <p>My code is behaving strangely. </p>
  
  <p>This is working fine:</p>
  
  <pre><code>page = requests.get(item)
  soup = BeautifulSoup(page.content, 'html.parser')
  tags = soup.find("div", class_="_1vC4OE _3qQ9m1")
  print(tags)
  print(type(tags))
  </code></pre>
  
  <p>Giving result as:</p>
  
  <pre><code>&lt;div class="_1vC4OE _3qQ9m1"&gt;₹57,999&lt;/div&gt;
  &lt;class 'bs4.element.Tag'&gt;
  &lt;div class="_1vC4OE _3qQ9m1"&gt;₹47,999&lt;/div&gt;
  &lt;class 'bs4.element.Tag'&gt;
  price_f.append(tags.contents[0])
  </code></pre>
  
  <p>But this:</p>
  
  <pre><code>page = requests.get(item)
  soup = BeautifulSoup(page.content, 'html.parser')
  tags = soup.find("span", class_="a-size-medium a-color-price priceBlockBuyingPriceString")
  print(tags)
  print(type(tags))
  **price_a.append("₹"+tags.contents[0][2:])**
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>&lt;span class="a-size-medium a-color-price priceBlockBuyingPriceString" id="priceblock_ourprice"&gt;₹ 57,500.00&lt;/span&gt;
  &lt;class 'bs4.element.Tag'&gt;
  None
  </code></pre>
  
  <p>This append is giving error event though I am getting value for this.</p>
  
  <pre><code>price_a.append("₹"+tags.contents[0][2:])
  
  AttributeError: 'NoneType' object has no attribute 'contents'
  </code></pre>