设置proxy.socks.port selenium [英] Set proxy.socks.port selenium
本文介绍了设置proxy.socks.port selenium的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我习惯这样设置http端口:
I am used to setting http port like this:
profile.set_preference("network.proxy.http_port", "PORTNUMBER")
这行得通.但是现在我需要连接socks代理并设置端口,它不起作用
and that works . But now I need to connect with socks proxy and set the port, which it's not working
profile.set_preference("network.proxy.socks_port", "PORTNUMBER")
我在文档中找不到参考,这就是我在这里问的原因.有任何想法吗 ?有没有更好的方法来做到这一点?
I couldn't find a reference in the docs and that's why I am asking here. Any ideas ? Is there a better way to do it ?
谢谢
推荐答案
在下面的示例中查看用户如何使用 socks_port....
See how the user is using socks_port.... in the below examples
使用硒-for-web-based-hostname-enumeration和 gist.github.com
这篇关于设置proxy.socks.port selenium的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文