bodegaMECH.py 文件源码

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

项目:OpenCouture-Dev 作者: 9-9-0 项目源码 文件源码
def __init__(self):
        self.br = mechanize.Browser()
        #self.cj = cookielib.LWPCookieJar()
        self.cj = cookielib.MozillaCookieJar()

        self.br.set_cookiejar(self.cj)
        self.br.set_handle_equiv(True)
        self.br.set_handle_referer(True)
        self.br.set_handle_robots(False)
        self.br.addheaders = [('User-agent', 'Firefox')]

        self.item_url = 'http://shop.bdgastore.com/collections/footwear/products/y-3-pureboost-zg'

        # Create variables for user credentials and a function to import them
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号