有没有办法在Windows上使用Casperjs + Tor? [英] Is there a way to use Casperjs + Tor on windows?

查看:75
本文介绍了有没有办法在Windows上使用Casperjs + Tor?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经搜索了一段时间,但找不到。有办法吗?

I've been searching for a while but can't figure it out. Is there a way to do this ?

推荐答案

Tor是socks5代理,不是普通代理,可以与casperjs一起使用,但是您有首先打开Tor,并确保已完成与Tor网络的连接

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

然后从命令行使用:

casperjs  --proxy=127.0.0.1:9150 --proxy-type=socks5 test.js

如果您关闭了tor应用程序,它将失去袜子连接

If you closed tor application it's will lost the socks connection

这篇关于有没有办法在Windows上使用Casperjs + Tor?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆