Files
zjjk/tools/sync_eastmoney.py

21 lines
422 B
Python
Raw Permalink Normal View History

2026-03-20 21:47:30 +08:00
from __future__ import annotations
import json
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
sys.path.insert(0, str(ROOT / "backend"))
from app.services.eastmoney_sync_service import eastmoney_sync_service # noqa: E402
def main() -> None:
result = eastmoney_sync_service.sync()
print(json.dumps(result, ensure_ascii=False, indent=2))
if __name__ == "__main__":
main()