From 1aa62788532bc06c1a790ce42909142b86835368 Mon Sep 17 00:00:00 2001 From: lolcat Date: Wed, 5 Aug 2026 01:48:10 -0400 Subject: [PATCH] fix brave being a little shit about pagination --- scraper/brave.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scraper/brave.php b/scraper/brave.php index 91b081d..88f9a18 100644 --- a/scraper/brave.php +++ b/scraper/brave.php @@ -388,14 +388,14 @@ class brave{ */ $nextpage = $this->fuckhtml - ->getElementById( + ->getElementsByClassName( "pagination", "div" ); - if($nextpage){ + if(count($nextpage) !== 0){ - $this->fuckhtml->load($nextpage); + $this->fuckhtml->load($nextpage[0]); $nextpage = $this->fuckhtml