google softcaptcha fix, again
This commit is contained in:
+3
-4
@@ -873,7 +873,6 @@ class google{
|
|||||||
|
|
||||||
$html = &$data["data"];
|
$html = &$data["data"];
|
||||||
$container = &$data["container"];
|
$container = &$data["container"];
|
||||||
|
|
||||||
//file_put_contents("scraper/google-jp.html", $html);
|
//file_put_contents("scraper/google-jp.html", $html);
|
||||||
//$html = file_get_contents("scraper/google.html");
|
//$html = file_get_contents("scraper/google.html");
|
||||||
//$container = "";
|
//$container = "";
|
||||||
@@ -3053,8 +3052,8 @@ class google{
|
|||||||
|
|
||||||
if(
|
if(
|
||||||
str_contains(
|
str_contains(
|
||||||
$this->fuckhtml->getloadedhtml(),
|
str_replace(" ", "", $this->fuckhtml->getloadedhtml()),
|
||||||
"<title>Google</title>"
|
"setTimeout(function(){if(spinner){spinner.style.visibility='hidden';}"
|
||||||
) &&
|
) &&
|
||||||
preg_match(
|
preg_match(
|
||||||
'/var eid ?= ?\'([^\']*)\'/',
|
'/var eid ?= ?\'([^\']*)\'/',
|
||||||
@@ -3067,7 +3066,7 @@ class google{
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
"sei" => $matches[1],
|
"sei" => $matches[1],
|
||||||
"timeout" => (int)$matches[2] // set to 10000 usually
|
"timeout" => 10000 // set to 10000 usually
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user