diff options
| author | lolcat <will@lolcat.ca> | 2025-01-03 21:43:40 -0500 |
|---|---|---|
| committer | lolcat <will@lolcat.ca> | 2025-01-03 21:43:40 -0500 |
| commit | 81df52235c4f5e213c2ee705343b386db9f66d1b (patch) | |
| tree | 5cc29ad76fa3d6d63fe378e40496cc85875a8877 /scraper/google.php | |
| parent | 1ca2626ad908f80544c2c08e6a444b4fc6d2bec5 (diff) | |
fixed google crash
Diffstat (limited to 'scraper/google.php')
| -rw-r--r-- | scraper/google.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scraper/google.php b/scraper/google.php index ab526f8..4f02648 100644 --- a/scraper/google.php +++ b/scraper/google.php @@ -2531,6 +2531,8 @@ class google{ "div" ); + $date = null; + if(count($date_div) !== 0){ foreach($date_div as $div){ @@ -2541,6 +2543,7 @@ class google{ "bottom:" ) !== false ){ + $date = strtotime( $this->fuckhtml @@ -2548,7 +2551,6 @@ class google{ $div ) ); - break; } } @@ -4147,7 +4149,7 @@ class google{ throw new Exception("Failed to get HTML"); } - //$html = file_get_contents("scraper/google.html"); + //$html = file_get_contents("scraper/google.txt"); return $this->parsepage($html, "web", $search, $proxy, $params); } |
