问题
I've been searching for a while but can't figure it out. Is there a way to do this ?
回答1:
Tor is socks5 proxy not normal proxy and it can work with casperjs , but you have to open tor first and make sure connection to tor network is done
Then from command line use:
casperjs --proxy=127.0.0.1:9150 --proxy-type=socks5 test.js
If you closed tor application it's will lost the socks connection
来源:https://stackoverflow.com/questions/40144028/is-there-a-way-to-use-casperjs-tor-on-windows