getDebug()) { log_message("debug", __FUNCTION__ . "=> " . $tag); } $crawler->filter($tag); if ($this->getDebug()) { log_message("debug", sprintf( "\n------------%s HTML-------------\n%s\n-----------------------------------------------------\n", __FUNCTION__, $crawler->filter($tag)->html() )); } return $crawler->filter($tag); } protected function changeURLByCrawler(string $url): string { return preg_match('/^[^?]+/', $url, $matches) ? $matches[0] : null; } protected function getUrlByMediaType(Crawler $node, string $media_type, string $attr): null|string { switch ($media_type) { case 'video': try { $url = $node->attr($attr); // 또는 } catch (\Exception) { $url = $node->children()->attr("src"); //