23 lines
604 B
Python
23 lines
604 B
Python
import requests
|
|
from furl import furl
|
|
import time
|
|
import json
|
|
|
|
file = open("data.json", "w+")
|
|
|
|
base_url = "https://www.ttyingqiu.com/"
|
|
f = furl(base_url)
|
|
|
|
f.path = "/static/no_cache/league/zc/jsbf/ttyq2020/jsbf_2022-11-06.json"
|
|
f.args["v"] = int(time.time()*1000)
|
|
print(f.url)
|
|
print(r.status_code)
|
|
print(r.json())
|
|
file.write(json.dumps(r.json()))
|
|
file.close()
|
|
|
|
|
|
url = "/static/no_cache/league/zc/jsbf/ttyq2020/jczq/jsbf_2022-11-06.json?v=1667799791084"
|
|
url = "https://www.ttyingqiu.com/static/no_cache/league/zc/jsbf/ttyq2020/jczq/2022-11-06/oz_407_6.json?v=1667799791169"
|
|
|
|
match_list = data["matchList"] |