python带cookie提交表单自动登录
摘要:
1 import urllib 2 import urllib2 3 import cookielib 4 5 login_url = "xxxxxxxxxxxxx" 6 7 cj = cookielib.CookieJar()#实例化对象,创建cookie容器cj 8 opener = urllib2.build_opener(urllib2.HTTPCookiePro... 阅读全文
posted @ 2015-01-03 23:53 efvhi 阅读(2261) 评论(2) 推荐(0) 编辑