win 00a727519f docs(phase-3): complete execution — 2/2 plans, 98 tests passing
- ARCH-04: job51 migrated to crawler_core (no old deps)
- ARCH-05: zhilian migrated to crawler_core (no old deps)
- 34 new mock tests (17 job51 + 17 zhilian)
- Added _parse_zhilian_response custom parser for zhilian API format
- Fixed POST Searcher _request() overrides for job51/zhilian
- Full regression: 98 passed in 0.12s
2026-03-21 19:19:17 +08:00

994 B
Raw Blame History

Plan 03-01 Summary: 迁移前程无忧job51层至 crawler_core

Status: Complete Tasks: 6/6 Commit: 8c2c2d2

What was built

spiderJobs/platforms/job51/ 4 个文件迁移至 crawler_core

  • client.pyHTTPClient 改用 crawler_core.http_clientJob51Sign 改用 crawler_core.qcwy.sign
  • api.py
    • import 改为 crawler_core.base.Result/BaseFetcher/BaseSearcher
    • ApiResult 全量替换为 Result(共 11 处)
    • 2 处 self._http.get(self.http_client.get(GetJobDetail/GetCompanyInfo 的覆写 fetch
    • 为 POST SearcherSearchRecommendJobs/SearchCompanyJobs添加 _request() POST 覆写
  • main.pyBaseFetcher/BaseSearcher 改用 crawler_core.base
  • sign.py:向后兼容桩,重新导出 crawler_core.qcwy.sign.Job51Sign
  • tests/job51/test_job51_client.py17 个 mock 测试,覆盖所有 API 类

Verification

pytest tests/job51/ -v → 17 passed ✅

Self-Check: PASSED