加密值用法:https://www.jianshu.com/p/953cdb93fddc
web端的加密值一周左右会更新一次。以下是加密值生成代码,根据uri
import requests,re
url = 'https://bgcdn.qixin.com/pcweb/common.8ed004ab.js'
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0'}
res = requests.get(url=url, headers=headers)
a = re.findall('(\d{1,2}):"(\w)"', res.text)
f = ''
uri = '/api/enterprise/getcopyrightlist/api/enterprise/getcopyrightlist'
for i in uri:
f += dict(a)[str(ord(i) % 20)]
print(f)