From a45ee256e4dd835266529fde18e925e1c325e9dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Tue, 3 Sep 2024 19:28:51 +0900 Subject: [PATCH] Automation init... --- app/Controllers/CLI/Crawler.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Controllers/CLI/Crawler.php b/app/Controllers/CLI/Crawler.php index d3c79e5..a1d7adf 100644 --- a/app/Controllers/CLI/Crawler.php +++ b/app/Controllers/CLI/Crawler.php @@ -11,13 +11,13 @@ class Crawler extends BaseController { try { $isDebug = in_array("debug", $params); - $library = new YamapLibrary(getenv("crawler.yamap.host")); + $library = new YamapLibrary(getenv("yamap.host")); $library->setDebug($isDebug); //1. MainPage - $url = getenv("crawler.yamap.url.main"); + $url = getenv("yamap.url.main"); $links = $library->getLinksByMainPage($url); //2. TargetPage : div.contents 가진 객체를 찾아서 첫번쨰 요소에서만 참조 - $url = !in_array("debug", $params) ? getenv("crawler.yamap.url.target") : $links[0]["href"]; + $url = !in_array("debug", $params) ? getenv("yamap.url.test") : $links[0]["href"]; $crawler = $library->getCrawlerByDetailPage($url); //3. Image $library->getImages($crawler);