1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| import time from hashlib import md5 import requests
cookies = {
}
headers = { } lang = 'zh' appType = 3 st = int(time.time()*1000) leagueId = 36 season = "2025-2026" count = 'a6b173cd6259a3a3f8cb85b2190ca3d1' url = f"/footballDataBase/core/h5LeagueData.findH5LeagueRace.doappType{appType}lang{lang}leagueId{leagueId}season{season}st{st}{count}" sign = md5(url.encode('utf8')).hexdigest()+'99' params = { 'lang': lang, 'appType': appType, 'st': str(st), 'sign': sign, 'leagueId': str(leagueId), 'season': season, }
response = requests.get( 'https://xxxx/footballDataBase/core/h5LeagueData.findH5LeagueRace.do', params=params, cookies=cookies, headers=headers, ) print(response.json())
|