Polish project documentation and runtime config

This commit is contained in:
2026-06-09 10:22:59 +08:00
parent 5f061295d8
commit 0594fc9f8c
43 changed files with 1001 additions and 97 deletions

View File

@@ -11,6 +11,7 @@ from __future__ import annotations
import importlib.util
import os
from pathlib import Path
from typing import Any
import requests
@@ -18,7 +19,8 @@ import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
_CRAWL_PATH = "/Users/xuexue/PycharmProjects/PythonProject/xuexue-CityGraph/crawl_guiyan.py"
_PROJECT_ROOT = Path(__file__).resolve().parents[2]
_CRAWL_PATH = os.getenv("GAODE_CRAWLER_PATH", str(_PROJECT_ROOT / "scripts" / "crawl_guiyan.py"))
_mod: Any = None
# 高德官方一级 POI 类型编码(按 type code 网格扫描,不靠热度关键词)