function handleParsedItems($items) { parent::handleParsedItems($items); $this->proxyService->increase(); // ќбрабатываем только одну страницу return false; //return (!$this->proxyService->isLeft()); }
function parseFromUrl($url) { $pattern = "{catalog\\[group_id\\]=(\\d+)}si"; if (preg_match($pattern, $url, $matches)) { $this->group = $matches[1]; } else { $this->group = ""; } return parent::parseFromUrl($url); }
function handleParsedItems($items) { parent::handleParsedItems($items); if (isset($this->proxyService)) { $this->proxyService->increase(); return !$this->proxyService->isLeft(); } else { return true; } }
function handleParsedItems($items) { parent::handleParsedItems($items); $this->proxyService->increase(); return !$this->proxyService->isLeft(); }