php下curl模拟百度蜘蛛进行采集
分类:编程(Programming) ; 热度:1588
private function _GetContent( $url ) { $this->ch = curl_init(); $this->ip = '220.181.108.91'; // 百度蜘蛛 $this->timeout = 15; curl_setopt($this->ch,CURLOPT_URL,$url); curl_setopt($this->ch,CURLOPT_TIMEOUT,0); //伪造百度蜘蛛IP curl_setopt($this->...