title: "AttributeError: 'NoneType' object has no attribute 'get_text'"
body: <p>Whenever I tried to run this code:</p>
  
  <pre><code>page = requests.get(URL, headers = headers)
  soup = BeautifulSoup(page.content, 'html.parser')
  
  title = soup.find(id="productTitle").get_text()
  price = soup.find(id="priceblock_ourprice").get_text()
  converted_price = price[0:7]
  
  
  if (converted_price &lt; '₹ 1,200'):
      send_mail()
  print(converted_price)
  print(title.strip())
  if(converted_price &gt; '₹ 1,400'):
      send_mail()
  </code></pre>
  
  <p>It gives me an error <code>AttributeError: 'NoneType' object has no attribute 'get_text'</code> earlier this code was working fine.</p>