Przeglądaj źródła

fix brave being a little shit about pagination

lolcat 3 dni temu
rodzic
commit
1aa6278853
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      scraper/brave.php

+ 3 - 3
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