aboutsummaryrefslogtreecommitdiffstats
path: root/scraper/google.php
diff options
context:
space:
mode:
Diffstat (limited to 'scraper/google.php')
-rw-r--r--scraper/google.php6
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);
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage