Answer the question
In order to leave comments, you need to log in
How to get js value of sparged page variable?
Good afternoon.
I want to translate one resource for myself, as well as send it offline.
The pages have an iframe that contains html with the required variable.
The variable is contained in a closed js function.
What is the best way to get it?
Initially, for parsing, I use webdriver in conjunction with php.
(function(document, player) {
var config = {}
}(document, document.getElementById('player')));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question