auto-sync: 2026-05-02 18:57:00

This commit is contained in:
cfdaily
2026-05-02 18:57:00 +08:00
parent 2f55ba294f
commit a4c6e205ee
+2 -1
View File
@@ -76,7 +76,8 @@ class FallbackManager:
days = (datetime.strptime(end_date, "%Y-%m-%d") - datetime.strptime(start_date, "%Y-%m-%d")).days + 10
url = f"https://web.ifzq.gtimg.cn/appstock/app/fqkline/get?param={tq_symbol},day,,{days},"
try:
with urllib.request.urlopen(url, timeout=10) as r:
req = urllib.request.Request(url, headers={"User-Agent": "Mozilla/5.0"})
with urllib.request.urlopen(req, timeout=10) as r:
data = json.loads(r.read())
klines = data.get("data", {}).get(tq_symbol, {}).get("day", [])
if not klines: