simplified the process of adding more search sites

This commit is contained in:
huangjx
2022-02-28 23:15:37 +08:00
parent dfb0d3fd9f
commit 618417023b
15 changed files with 173 additions and 41 deletions

View File

@@ -10,10 +10,12 @@ class sliderkz extends searchBase implements searchInterface
public $baseUrl = "https://slider.kz/vk_auth.php";
protected $query = null;
protected $tableTitles = [];
public function __construct($client)
public function __construct($crawler,$client)
{
$this->client = $client;
}
public function search(string $keyword): array
{
$this->query = ['q' => trim($keyword)];
@@ -69,4 +71,9 @@ class sliderkz extends searchBase implements searchInterface
return [];
}
public static function getLabel(): string
{
return 'music';
}
}