title: Python script is working on local but not on Ubuntu server
body: <p>This is my first post on this forum and I hope to explain my problem the right way.</p>
  <p>So I wrote this little web crawler to update me when the price of a product on Amazon is updating the price. After that it is sending me a notification at Telegram.</p>
  <pre class="lang-py prettyprint-override"><code>def check_price():
      page = requests.get(URL, headers=headers)
  
      soup = BeautifulSoup(page.content, 'html.parser')
  
      title = soup.find(id='priceblock_ourprice').get_text() # this is the problematic line
      converted_price = title[0:6]
      converted_price = float(converted_price.replace(',', '.'))
  
      if os.path.exists('data.txt'):
          with open('data.txt', 'r+') as f:
              f_contents = f.read()
  
              if converted_price != float(f_contents):
                  send_msg('The price was updated to: ' + str(converted_price) + '€')
                  f.write(str(converted_price))
      else:
          send_msg('The price was updated to: ' + str(converted_price) + '€')
          with open('data.txt', 'w') as f:
              f.write(str(converted_price))
      return
  </code></pre>
  <p>The problem is now that it works on my local machine and I get the notification. But when I try to run the code on the server I get this message:</p>
  <pre><code>Traceback (most recent call last):
     File &quot;main.py&quot;, line 44, in &lt;module&gt;
        check_price()
     File &quot;main.py&quot;, line 16, in check_price
        title = soup.find(id='priceblock_ourprice').get_text()
  AttributeError: 'NoneType' object has no attribute 'get_text'
  </code></pre>
  <p>I just post the main function for checking the price and not the sending because the problem is occurring before that.
  I can't find the error in the way I did it. I hope you can help me and thanks.</p>