title: Finding JavaScript variable with certain string with BeautifulSoup
body: <p>I have a little tricky task where i need to find some HTML within a JavaScript variable and traverse it.</p>
  
  <p>The variables look like this:</p>
  
  <pre><code>&lt;script&gt;
  var someVar = new something.Something({
      content: 'This text has to be found&lt;br /&gt;&lt;table&gt;&lt;/table&gt;',
      size: 230
  )};
  ....
  &lt;/script&gt;
  </code></pre>
  
  <p>I do not know the name of the JS variable, so it has to be found based on the <code>This text has to be found</code> snippet/string. Afterwards verified that it is actually a JS variable, then i want to fetch the value <code>&lt;br /&gt;&lt;table&gt;&lt;/table&gt;</code> in order to traverse it.</p>