JobData/crawler_core/__init__.py
win d7c8bec287 docs(01-01): complete crawler_core package plan — SUMMARY, STATE, ROADMAP updates
- Create 01-01-SUMMARY.md with implementation details and interface contracts
- STATE.md: advance to plan 2, record metrics, add decisions from plan 01
- ROADMAP.md: update phase 1 plan progress (1/2 plans complete)
- REQUIREMENTS.md: mark ARCH-01, ARCH-02, QUAL-04, QUAL-05 complete
- crawler_core/__init__.py: preserve linter-added try/except ImportError guard
2026-03-21 18:14:19 +08:00

25 lines
679 B
Python

"""
crawler_core — 招聘爬虫共享核心包
安装方式: pip install -e ./crawler_core
使用方式: from crawler_core import BaseFetcher, BaseSearcher, Result, HTTPClient
"""
try:
from crawler_core.base import Result, BaseFetcher, BaseSearcher, parse_response
from crawler_core.http_client import HTTPClient
__all__ = [
"Result",
"BaseFetcher",
"BaseSearcher",
"HTTPClient",
"parse_response",
]
except ImportError:
# Optional heavy deps (requests_go, tenacity) may not be installed in
# lightweight test environments. Sign-algorithm sub-packages remain importable.
__all__ = []
__version__ = "0.1.0"