I want to use TOR proxy in my scraping script. I have tried to set socks5 tor proxy using below code but it gives curl error. If same curl option I am setting in my simple curl request PHP file then it works fine. But it gives error in Goutte library.
Hi,
I want to use TOR proxy in my scraping script. I have tried to set socks5 tor proxy using below code but it gives curl error. If same curl option I am setting in my simple curl request PHP file then it works fine. But it gives error in Goutte library.
$client->getClient()->setDefaultOption('config/curl/'.CURLOPT_PROXY, '127.0.0.1:9050'); $client->getClient()->setDefaultOption('config/curl/'.CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
Thanks, Jitendra