title: Access to javascript variable with BeautifulSoup
body: <p>How can I access a javascript variable with BeautifulSoup?  I know the name of the variable</p>
  
  <p>The variable is defined in a script tag:</p>
  
  <pre><code>&lt;script&gt;
      var variable_name = value;
  &lt;/script&gt;
  </code></pre>
  
  <p>For example, in the browser console I write <code>window.variable_name</code> and I get the value. How can I get an equivalent in Beautiful Soup?</p>