Polish project documentation and runtime config
This commit is contained in:
@@ -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 网格扫描,不靠热度关键词)
|
||||
|
||||
Reference in New Issue
Block a user