From 8e0002a36242e5c0b4df87e6d5dbe95554c1c644 Mon Sep 17 00:00:00 2001 From: "Y. Zhang" Date: Mon, 16 Mar 2026 01:57:11 +0800 Subject: [PATCH] fix: correct EXP_CODES and JOB_TYPE_CODES mappings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - EXP_CODES: all experience codes were shifted by one position. Verified against https://www.zhipin.com/web/geek/jobs URL params. Also split '在校/应届' into separate '在校生' and '应届生' entries, and added missing '经验不限' option. - JOB_TYPE_CODES: '实习' was incorrectly mapped to '1903' (same as '兼职'). The correct code for '实习' is '1902'. --- boss_cli/constants.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/boss_cli/constants.py b/boss_cli/constants.py index fd11ae1..a0e6842 100644 --- a/boss_cli/constants.py +++ b/boss_cli/constants.py @@ -130,12 +130,14 @@ # ── Experience filter codes ───────────────────────────────────────── EXP_CODES: dict[str, str] = { "不限": "0", - "在校/应届": "108", - "1年以内": "101", - "1-3年": "102", - "3-5年": "103", - "5-10年": "104", - "10年以上": "105", + "在校生": "108", + "应届生": "102", + "经验不限": "101", + "1年以内": "103", + "1-3年": "104", + "3-5年": "105", + "5-10年": "106", + "10年以上": "107", } # ── Degree filter codes ───────────────────────────────────────────── @@ -206,6 +208,6 @@ # ── Job type filter codes ────────────────────────────────────────── JOB_TYPE_CODES: dict[str, str] = { "全职": "1901", + "实习": "1902", "兼职": "1903", - "实习": "1903", }