Esempio n. 1
0
 public function actionIndex()
 {
     $start = microtime(true);
     $container = new CrawlContainer(['baseUrl' => $this->module->baseUrl, 'filterRegex' => $this->module->filterRegex]);
     $this->output(print_r($container->getReport(), true));
     $timeElapsed = round((microtime(true) - $start) / 60, 2);
     return $this->outputSuccess('Cralwer finished in ' . $timeElapsed . ' min.');
 }
Esempio n. 2
0
 public function actionIndex()
 {
     $client = new Client();
     $pageCrawler = new CrawlPage(['client' => $client, 'baseUrl' => $this->module->baseUrl]);
     $container = new CrawlContainer(['baseUrl' => $this->module->baseUrl, 'pageCrawler' => $pageCrawler]);
     $this->output(print_r($container->getReport(), true));
     return $this->outputSuccess('Index Crawler finished');
 }