Просмотр исходного кода

fix brave being a little shit about pagination

lolcat 11 часов назад
Родитель
Сommit
1aa6278853
1 измененных файлов с 3 добавлено и 3 удалено
  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