# python3
import requests
import os
import sqlite3
from win32crypt import CryptUnprotectData
# cookies存放路径
cookie_path = os.environ['LOCALAPPDATA'] + r"\Google\Chrome\User Data\Default\Cookies"
# 获取cookie
def get_cookie_from_chrome(host=None):
sql = "select host_key,name,encrypted_value from cookies where host_key='{}'".format(host)
with sqlite3
使用本地cookie缓存,模拟访问
最新推荐文章于 2020-12-03 18:50:00 发布