参数:Accept-Locale
- import hashlib
- def get_signature(e):
- t = "fuck-your-mother-three-thousand-times-apes-not-kill-apes"
- n = sorted(e.items())
- n = [f"{k}={v}" for k, v in n if not isinstance(v, (dict, list, type(None)))]
- n = "&".join(n)
- i = hashlib.md5((n + t).encode()).hexdigest()
- return i
复制代码 |