aboutsummaryrefslogtreecommitdiffstats
path: root/scraper
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2026-05-29 21:48:06 -0400
committerPinapelz <yukais@pinapelz.com>2026-06-01 21:03:47 -0700
commit4eb39098d80f2bbadb6f625dda4a49af09ae063f (patch)
tree1125c20d0a19b6cba877d6bfddf10b462c77061e /scraper
parent403f2004c1ac19299390550bfda2fff7adcf5142 (diff)
fix startpage pagination, again
Diffstat (limited to 'scraper')
-rw-r--r--scraper/startpage.php21
1 files changed, 6 insertions, 15 deletions
diff --git a/scraper/startpage.php b/scraper/startpage.php
index a555dc5..d1f2b41 100644
--- a/scraper/startpage.php
+++ b/scraper/startpage.php
@@ -1105,29 +1105,20 @@ class startpage{
if($page["name"] == "Next"){
- parse_str(
- explode(
- "?",
- $page["url"],
- 2
- )[1],
- $str
- );
-
return
$this->backend->store(
http_build_query(
[
"lui" => "english",
"language" => "english",
- "sc" => $str["sc"],
+ "sc" => $json["render"]["search_sc"],
"t" => "device",
"cat" => $pagetype,
- "segment" => "startpage.udog",
- "abd" => 0,
- "abe" => 0,
- "query" => $str["q"],
- "page" => $str["page"],
+ "segment" => "organic",
+ "abd" => "0",
+ "abe" => "0",
+ "query" => $json["render"]["query"],
+ "page" => $page["number"],
"qsr" => "all",
"qadf" => "none" // @ todo fix (??)
]
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage