crawler.py 文件源码

python
阅读 36 收藏 0 点赞 0 评论 0

项目:crawler_sqlmap 作者: CvvT 项目源码 文件源码
def setProxy(self, proxy):
        profile = FirefoxProfile()
        profile.accept_untrusted_certs = True
        profile.assume_untrusted_cert_issuer = True
        prefix = "network.proxy."
        profile.set_preference("%stype" % prefix, 1)
        for type in ["http", "ssl", "ftp", "socks"]:
            profile.set_preference("%s%s" % (prefix, type), proxy.getHost())
            profile.set_preference("%s%s_port" % (prefix, type), int(proxy.getPort()))
        return profile
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号