How to get the value of a js variable spasennoy page?

Good afternoon.
Want to convert one resource for yourself, just send it to offline mode.
On the pages there is an iframe which contains an html with the desired variable.
Contains a closed variable in js function.
As more adequately to get it?
Initially, for parsing I use webdriver in bundles with php.
(function(document, player) {
var config = {} 
}(document, document.getElementById('player')));

Here is the contents of the variable configuration needed. Other contents inside may vary
March 23rd 20 at 19:39
1 answer
March 23rd 20 at 19:41
Solved the problem, writing a regular expression.

Find more questions by tags ParsingSelenium