diff options
| author | lolcat <will@lolcat.ca> | 2026-03-18 01:20:10 -0400 |
|---|---|---|
| committer | lolcat <will@lolcat.ca> | 2026-03-18 01:20:10 -0400 |
| commit | 2386dd707e4198f5e267944c19d14e7d05f78480 (patch) | |
| tree | 24c67afd5b14d208066dea8f07eb1a7ff9a408bb /scraper/google.php | |
| parent | 61548e8b84e948ef71e405a980941a9fc996ae28 (diff) | |
pagination fix
Diffstat (limited to 'scraper/google.php')
| -rw-r--r-- | scraper/google.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scraper/google.php b/scraper/google.php index 73fd7a4..8f24e01 100644 --- a/scraper/google.php +++ b/scraper/google.php @@ -1,6 +1,7 @@ <?php -// @TODO check for consent.google.com page, if need be +// noJS but requires login/cookie token +// https://www.google.com/search?q=asmr&tbm=isch&asearch=arc&async=arc_id:srp_a,ffilt:all,ve_name:MoreResultsContainer,use_ac:false,inf:0,_id:arc-srp_a,_pms:s,_fmt:pc class google{ @@ -629,7 +630,7 @@ class google{ "q" => $search, "tbm" => "isch", "asearch" => "isch", - "async" => "_fmt:json,p:1,ijn:{$page}", // ijn:0 = page 1 + "async" => "_fmt:json,p:0,ijn:{$page}", // ijn:0 = page 1 ]; // country (image search uses cr instead of gl) |
