protected function getUrl($start = 0) { parent::getUrl($start); $this->url = 'http://google.ru/search?q=' . rawurlencode($this->keyword) . '&lr=&hl=ru&num=' . $this->perPage; if ($this->start > 0) { $this->url .= '&start=' . $this->start; } return $this->url; }
protected function getUrl($start = 0) { parent::getUrl($start); $this->url = 'http://yandex.ru/yandsearch?text=' . rawurlencode($this->keyword) . '&numdoc=' . $this->perPage; if ($this->start > 0) { $this->url .= '&p=' . $this->start; } // add region code if ($this->context != null && !empty($this->context['region_code'])) { $this->url .= '&lr=' . $this->context['region_code']; } return $this->url; }