public function openHref($href, $pageUrl = NULL)
 {
     $bak = XPathHelper::$_curlopts;
     XPathHelper::$_curlopts[CURLOPT_USERAGENT] = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11";
     $res = parent::openHref($href);
     XPathHelper::$_curlopts = $bak;
     return $res;
 }
 public function __construct()
 {
     parent::__construct('http://www.vitacost.com/', new Spider_VitacostCom_Parser());
 }
 public function __construct()
 {
     parent::__construct('http://www.amazon.com/', new Spider_AmazonCom_Parser());
 }
Beispiel #4
0
 /**
  * 
  * @param Spider_Controller $spider
  */
 public function addSpider(Spider_Controller $spider)
 {
     $this->_spiders[$this->getSpiderId($spider->getBaseUrl())] = $spider;
 }
 public function __construct()
 {
     parent::__construct('http://www.livamed.com/', new Spider_LivamedCom_Parser());
 }