浏览代码

why does google do this

lolcat 1 月之前
父节点
当前提交
90e0a32366
共有 1 个文件被更改,包括 4 次插入 和 0 次删除
  1. 4 0
      scraper/google.php

+ 4 - 0
scraper/google.php

@@ -3052,6 +3052,10 @@ class google{
 		foreach($scripts as $sc){
 			
 			if(
+				str_contains(
+					$this->fuckhtml->getloadedhtml(),
+					"<title>Google</title>"
+				) &&
 				preg_match(
 					'/var eid ?= ?\'([^\']*)\'/',
 					$sc["innerHTML"],