main.py 文件源码

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

项目:seu-jwc-catcher 作者: LeonidasCl 项目源码 文件源码
def get_verifycode():
    global cookie
    cookie = cookielib.LWPCookieJar()
    opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookie), urllib2.HTTPHandler)
    urllib2.install_opener(opener)
    img = urllib2.urlopen('http://xk.urp.seu.edu.cn/jw_css/getCheckCode', timeout=8)
    f = open('verifycode.jpg', 'wb')
    f.write(img.read())
    f.close()
    return 0
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号