https.py 文件源码

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

项目:python-spider 作者: titrxw 项目源码 文件源码
def installCookie(self):
        if self.__opener is None:
            self.__cookies = cookielib.CookieJar()
            proxy_support= None
            if self.__proxyIp is not None:
                proxy_support = urllib.request.ProxyHandler(self.__proxyIp)
                self.__opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(self.__cookies),proxy_support)
            else:
                self.__opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(self.__cookies))
            urllib2.install_opener(self.__opener)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号