Hello, I realize that the util.parse function leads to errors, because some scrapped pages does not contain window["ytInitialData"] =, but var ytInitialData = instead.
So consider the following parse function solves my error:
parse: x => main.between(x, 'var ytInitialData = ', '};', 1)
Hello, I realize that the util.parse function leads to errors, because some scrapped pages does not contain
window["ytInitialData"] =
, butvar ytInitialData =
instead.So consider the following
parse
function solves my error:Is it possible to support the both alternatives ?