摘要:
import cookielib,urllib2class AddCookieHandler(urllib2.BaseHandler): def __init__(self,cookieValue): self.cookieValue = cookieValue def http_request(self, req): if not req.has_header('Cookie'): req.add_unredirected_header('Cookie', self.cookieValue) else: ... 阅读全文
posted @ 2014-01-03 14:23
前端小小菜
阅读(950)
评论(0)
推荐(0)
浙公网安备 33010602011771号