他们在爬网页时,是怎么用的代理IP?


比如用CURL的话,代理IP该怎么用啊,是开启软件还是直接在CURL做的设置啊,求指教。

代理 php curl 网页爬虫

linyp 9 years, 7 months ago

http://php.net/manual/en/book.curl.php


 php


 if ($this->proxy) curl_setopt($process, CURLOPT_PROXY, $this->proxy);

苍穹D自由 answered 9 years, 7 months ago

Your Answer