from urllib import request,parse from http import cookiejar cookie = cookiejar.CookieJar()#生成cookie对象 cookie_handler = request.HTTPCookieProcessor(cookie) http_handler = request.HTTPHandler()# http请求管理器 https_handler = request.HTTPSHandler()# https请求管理器 #发起请求管理器 opener = request.build_opener(https_handler,https_handler,cookie_handler) #登录
python Spider Man(爬虫侠)三,之cookie进行人人网页面爬取
最新推荐文章于 2023-01-31 17:48:50 发布