title: Getting a JS variable from a website readed with Python 3
body: <p>Today is my very first day with Python so I´m not even sure if I´m asking in the right way... The thing is that I´m making a python script and I need to read an url and get some info from the result.</p>
  
  <p>I get the info this way:</p>
  
  <pre><code>import urllib.request
  from bs4 import BeautifulSoup
  
  fp = urllib.request.urlopen("https://theurliwanttoread")
  mybytes = fp.read()
  mystr = mybytes.decode("utf8")
  fp.close()
  parsed = BeautifulSoup(mystr, 'html.parser')
  parsedDOM = parsed.prettify())
  </code></pre>
  
  <p>And then, I need to get the price inside the Python script but I don´t know how to parse/deal with it to get it...</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      var optionsPrice = new Product.OptionsPrice({
          "priceFormat":"a",
          "precision":2,
          "decimalSymbol":".",
          "price": 100
      });
  &lt;/script&gt;
  </code></pre>