From e63a17d6dbc474a8220b651f61353d871b2f9674 Mon Sep 17 00:00:00 2001 From: lolcat Date: Sat, 25 Apr 2026 22:58:28 -0400 Subject: added google api image scraper --- scraper/google_api.php | 294 +++++++++++++++++++++++++++++++++++-------------- 1 file changed, 213 insertions(+), 81 deletions(-) (limited to 'scraper/google_api.php') diff --git a/scraper/google_api.php b/scraper/google_api.php index bb2cacf..a3863ca 100644 --- a/scraper/google_api.php +++ b/scraper/google_api.php @@ -264,6 +264,25 @@ class google_api{ "yes" => "Yes", // safe=active "no" => "No" // safe=off ] + ], + "sort" => [ // sort + "display" => "Sort by", + "option" => [ + "any" => "Any order", + "date:d" => "Oldest", + "date:a" => "Newest" + ] + ], + "newer" => [ + "display" => "Newer than", + "option" => "_DATE" + ], + "rm_dupes" => [ // filter + "display" => "Remove duplicates", + "option" => [ + "yes" => "Yes", // 1 + "no" => "No" // 0 + ] ] ]; @@ -313,86 +332,52 @@ class google_api{ "zh-CN" => "Chinese (Simplified)", "zh-TW" => "Chinese (Traditional)" ] - ], - "sort" => [ - "display" => "Sort by", - "option" => [ - "any" => "Any order", - "date:d" => "Oldest", - "date:a" => "Newest" - ] - ], - "newer" => [ - "display" => "Newer than", - "option" => "_DATE" - ], - "rm_dupes" => [ - "display" => "Remove duplicates", - "option" => [ - "yes" => "Yes", - "no" => "No" - ] ] ] ); break; - /* + case "images": return array_merge( $base, [ - "time" => [ // tbs=qdr: