Automationn init...
This commit is contained in:
parent
3bcf1393b7
commit
13ed3973b7
@ -21,7 +21,7 @@ class Crawler extends BaseController
|
|||||||
throw new \Exception("Target Links가 없습니다.");
|
throw new \Exception("Target Links가 없습니다.");
|
||||||
}
|
}
|
||||||
//2. TargetPage : div.contents 가진 객체를 찾아서 첫번쨰 요소에서만 참조
|
//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);
|
$crawler = $library->getCrawlerByDetailPage($url);
|
||||||
//3. Image
|
//3. Image
|
||||||
$library->getImages($crawler);
|
$library->getImages($crawler);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user