mirror of
https://git.bakhai.co.in/FbIN/fossq.git
synced 2026-04-21 04:46:17 +05:30
Synced
Fix pagination
This commit is contained in:
parent
6f0dc3511a
commit
953e6ac745
1 changed files with 4 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
@ -1330,4 +1331,4 @@ class google{
|
|||
throw new Exception("Google returned a captcha");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue