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