diff --git a/price_monitor.py b/price_monitor.py index e7fd2a6..7485c24 100644 --- a/price_monitor.py +++ b/price_monitor.py @@ -155,6 +155,7 @@ def fetch_hk_eastmoney(codes): change_pct = str(item.get("f170", "0")) if price > 0: results[code] = (price, change, change_pct) + time.sleep(0.1) # 防止触发东财反爬(逐股查询,不支持批量) except Exception as e: print(f"⚠️ 东方财富 {code} 拉取失败: {e}", file=sys.stderr) continue