摘要:
import urllib.request import urllib.parse bianma = '编程' one = urllib.parse.quote(bianma) print(one) two = urllib.parse.quote(one) print(two) three = u 阅读全文
posted @ 2021-06-22 21:43
自己的阿毛
阅读(28)
评论(0)
推荐(0)
摘要:
import urllib.request import urllib.parse headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) 阅读全文
posted @ 2021-06-22 21:34
自己的阿毛
阅读(37)
评论(0)
推荐(0)
摘要:
import urllib.request import ssl # 关闭ssl证书验证(固定写法) ssl._create_default_https_context = ssl._create_unverified_context url = 'https://inv-veri.chinatax 阅读全文
posted @ 2021-06-22 21:18
自己的阿毛
阅读(401)
评论(0)
推荐(0)
摘要:
import urllib.request from http import cookiejar filename = 'cookie.txt' # 创建MoillaCookiejar对象 cookie = cookiejar.MozillaCookieJar() # 读取cookie变量 cook 阅读全文
posted @ 2021-06-22 21:08
自己的阿毛
阅读(79)
评论(0)
推荐(0)
摘要:
目前还没看懂,mozillacookiejar 啥子意思 网上都是基本上是复制粘贴的,没讲明白。 所以就死记硬背吧。 记住民工三连: cookie = cookiejar.Mozillacookiejar(filename) handler = urllib.request.HTTPCookiePr 阅读全文
posted @ 2021-06-22 20:50
自己的阿毛
阅读(101)
评论(0)
推荐(0)

浙公网安备 33010602011771号