title: Using BeautifulSoup4 to retrieve javascript dictionary value from html
body: <p>I need to extract the "album_release_date" value on a web page. It is listed in a script tag in what looks like a dictionary value on the page and I am not sure if it can be accessed with bs4. The only solution I can think of is using regex, would that be the best method?</p>
  
  <p>Here is the structure of the page's source code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  var TralbumData = {
  
      current: {
          "upc":null,"title":"BLACK&amp;WHITE MEDICINE","purchase_title":null,
          "download_desc_id":null,"minimum_price":0.0,"set_price":7.0,"mod_date":"17 Jun 2018 11:47:50 GMT"
      },
      album_is_preorder: null,
      album_release_date: "17 Jun 2018 00:00:00 GMT",
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>I have searched all over, but could not find anything outside of accessing the dictionaries that are exported from bs4.</p>