diff --git a/scraper/brave.php b/scraper/brave.php index 88f9a18..5573133 100644 --- a/scraper/brave.php +++ b/scraper/brave.php @@ -1773,14 +1773,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