title: how to monitor availability Decathlon's products with python?
body: <p>I have a request for you.</p>
  <p>I wanna to <strong>scrape</strong> the following product <a href="https://www.decathlon.it/p/kit-manubri-e-bilanciere-bodybuilding-93kg/_/R-p-10804?mc=4687932&amp;c=NERO#" rel="nofollow noreferrer">https://www.decathlon.it/p/kit-manubri-e-bilanciere-bodybuilding-93kg/_/R-p-10804?mc=4687932&amp;c=NERO#</a></p>
  <p>The prodcuts have two possible status:</p>
  <ol>
  <li>&quot;ATTUALMENTE INDISPONIBILE&quot;</li>
  <li>&quot;Disponibile&quot;</li>
  </ol>
  <p>In a nutshell I wanna to create a script that monitors for all minutes if the product is available, recording all data in the shell.</p>
  <p>The output could be the following:</p>
  <pre><code>28/03/2021 12:07 - Attualmente Indisponibile
  28/03/2021 12:08 - Attualmente Indisponibile
  28/03/2021 12:09 - Disponibile 
  </code></pre>
  <p>Is it possibile with python? Someone could help me to write the code?
  I'm not able to use &quot;request&quot; patch or other web-scraping pythons tools, but I wanna learn.</p>
  <p>I have tried with the following code:</p>
  <pre><code>import requests
  import re
  
  urls = ['p/kit-manubri-e-bilanciere-bodybuilding-93kg/_/R-p-10804.html']
  
  
  def main(site):
      with requests.Session() as req:
          for url in urls:
              r = req.get(site.format(url))
              match = re.search('availability.+org\/(.*?)&quot;', r.text)
              print(&quot;url: {:&lt;70}, status: {}&quot;.format(r.url, match.group(1)))
  
  
  main(&quot;https://www.decathlon.it/{}&quot;)
  </code></pre>
  <p>but give me the following error:</p>
  <pre><code>AttributeError: 'NoneType' object has no attribute 'group'
  </code></pre>