[Python] 纯文本查看 复制代码
import json
import hashlib
import random
import time
from urllib.parse import quote
from urllib.request import Request
import requests
from curl_cffi import requests
from datetime import datetime
from requests import status_codes
def string_to_md5(s):
return hashlib.md5(s.encode('utf-8')).hexdigest()
i="198F788B9EE343209E0121BF72E8C562"
l="2606896516"
c="1724471223"
h="category={'2':0,'3':0,'5':[],'7':[],'8':[],'9':[],'10':[],'11':[],'13':[],'14':[],'16':[],'17':[],'19':[],'20':[],'21':[],'22':[],'24':[],'25':[],'27':[],'28':[],'29':[],'30':[],'31':[]}&game_id=148&page=1&scope={'min_price':"",'max_price':""}&services=all&sort={'type':'isnew','method':2}"
g="APPSECRET=198F788B9EE343209E0121BF72E8C562&CATEGORY={'2':0,'3':0,'5':[],'7':[],'8':[],'9':[],'10':[],'11':[],'13':[],'14':[],'16':[],'17':[],'19':[],'20':[],'21':[],'22':[],'24':[],'25':[],'27':[],'28':[],'29':[],'30':[],'31':[]}&game_id=148&page=1&scope={'min_price':"",'max_price':""}&services=all&sort={'type':'isnew','method':2}&TIMESTAMP=1724471223&RANDOMSTR=2606896516"
sign = hashlib.md5(g.encode('utf-8')).hexdigest()
print(sign)