Is there a way to use Casperjs + Tor on windows?

核能气质少年 提交于 2020-01-03 04:34:12

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!