Automationn init...

This commit is contained in:
최준흠 2024-09-03 19:48:06 +09:00
parent 3bcf1393b7
commit 13ed3973b7

View File

@ -21,7 +21,7 @@ class Crawler extends BaseController
throw new \Exception("Target Links가 없습니다.");
}
//2. TargetPage : div.contents 가진 객체를 찾아서 첫번쨰 요소에서만 참조
$url = !in_array("debug", $params) ? getenv("yamap.url.test") : $links[0]["href"];
$url = $isDebug ? getenv("yamap.url.test") : $links[0]["href"];
$crawler = $library->getCrawlerByDetailPage($url);
//3. Image
$library->getImages($crawler);