# ruishucookie.py import os import execjs import httpx httpx._config.DEFAULT_CIPHERS += ":ALL:@SECLEVEL=1" filename = 'Cache.js' if os.path.exists(filename): with open(filename, 'r', encoding='utf-8') as file: fileContent = file.read() else: fileContent = '' def initCookie(getUrl='https://wapact.189.cn:9001/gateway/standQuery/detailNew/exchange'): global js_code_ym, fileContent cookie = '' response = httpx.post(getUrl) content = response.text.split(' content="')[2].split('" r=')[0] code1 = response.text.split('$_ts=window')[1].split('