@qing3a/flow-rpa-app 0.6.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,54 +1,78 @@
1
- {
2
- "id": "liepin_search_resumes",
3
- "name": "猎聘搜索候选人(HR 端)",
4
- "platform": "liepin",
5
- "version": 3,
6
- "trigger": { "mode": "manual" },
7
- "inputs": [
8
- { "name": "keyword", "required": true, "description": "搜索关键词(职位名,如 产品经理)" },
9
- { "name": "city", "required": false, "description": "城市名(如 珠海;缺省不带 → 平台默认城市)" },
10
- { "name": "limit", "required": false, "description": "提取数量上限,缺省 10" }
11
- ],
12
- "envCheck": {
13
- "verifyUrls": [
14
- "safe.liepin.com/page/liepin/captchaPage_PC"
15
- ],
16
- "dialogs": []
17
- },
18
- "steps": [
19
- {
20
- "id": "nav_home",
21
- "type": "navigate",
22
- "params": { "url": "https://h.liepin.com/search/getConditionItem" },
23
- "verify": { "waitSelector": ".search-btn, .auto-input-wrap-v3 input, .auto-input-wrap-v3", "timeoutMs": 180000 }
24
- },
25
- {
26
- "id": "input_keyword",
27
- "type": "input",
28
- "params": { "selector": ".auto-input-wrap-v3 input, input.search-component-input, input[placeholder*=\"搜职位\" i]", "value": "{keyword}" },
29
- "verify": { "textContains": "{keyword}" }
30
- },
31
- {
32
- "id": "click_search",
33
- "type": "click",
34
- "params": { "selector": ".search-btn", "reactFallback": true },
35
- "verify": { "waitSelector": ".new-resume-card", "timeoutMs": 45000 }
36
- },
37
- {
38
- "id": "extract_resumes",
39
- "type": "extract",
40
- "params": { "selector": ".new-resume-card", "field": "resumeList", "save": true },
41
- "verify": { "textContains": "求职期望", "timeoutMs": 30000 }
42
- },
43
- {
44
- "id": "wait_breathe",
45
- "type": "wait",
46
- "params": { "ms": 3000 }
47
- },
48
- {
49
- "id": "finalize",
50
- "type": "finalize",
51
- "params": { "closeTab": true }
52
- }
53
- ]
54
- }
1
+ {
2
+ "id": "liepin_search_resumes",
3
+ "name": "猎聘搜索候选人(HR 端)",
4
+ "platform": "liepin",
5
+ "version": 4,
6
+ "trigger": { "mode": "manual" },
7
+ "inputs": [
8
+ { "name": "keyword", "required": true, "description": "搜索关键词(职位名,如 产品经理)" },
9
+ { "name": "city", "required": false, "description": "城市名(当前流程未使用——城市筛选走平台默认;保留声明以备扩展)" },
10
+ { "name": "pages", "required": false, "default": "1", "description": "单关键词翻页数,缺省 1(只取首页);引擎护栏兜上限(单步 ≤20 页、单 run ≤30 页)" }
11
+ ],
12
+ "envCheck": {
13
+ "verifyUrls": [
14
+ "safe.liepin.com/page/liepin/captchaPage_PC"
15
+ ],
16
+ "dialogs": []
17
+ },
18
+ "steps": [
19
+ {
20
+ "id": "nav_home",
21
+ "type": "navigate",
22
+ "params": { "url": "https://h.liepin.com/search/getConditionItem" },
23
+ "verify": { "waitSelector": ".search-btn, .ant-select-selection-search-input, .auto-input-wrap-v3 input, .auto-input-wrap-v3", "timeoutMs": 180000 }
24
+ },
25
+ {
26
+ "id": "input_keyword",
27
+ "type": "input",
28
+ "params": {
29
+ "selector": "input.ant-select-selection-search-input, .auto-input-wrap-v3 input, input.search-component-input, input[placeholder*=\"搜职位\" i]",
30
+ "value": "{keyword}",
31
+ "index": 1
32
+ },
33
+ "verify": { "textContains": "{keyword}" }
34
+ },
35
+ {
36
+ "id": "click_search",
37
+ "type": "click",
38
+ "params": { "selector": ".search-btn", "reactFallback": true },
39
+ "verify": { "waitSelector": "tr[data-tlg-scm]", "timeoutMs": 45000 }
40
+ },
41
+ {
42
+ "id": "pages_loop",
43
+ "type": "loop",
44
+ "params": {
45
+ "maxIterations": "{pages}",
46
+ "maxCandidates": 30,
47
+ "steps": [
48
+ {
49
+ "id": "extract_rows",
50
+ "type": "extract",
51
+ "params": { "selector": "tr[data-tlg-scm]", "field": "resumeRows", "save": true },
52
+ "verify": { "textContains": "求职期望", "timeoutMs": 30000 }
53
+ },
54
+ {
55
+ "id": "extract_ids",
56
+ "type": "extract",
57
+ "params": { "selector": "tr[data-tlg-scm] input[name='res_id_encode']", "attr": "value", "field": "resIdList", "save": true }
58
+ },
59
+ {
60
+ "id": "next_page",
61
+ "type": "next_page",
62
+ "params": { "max": 1, "stopAtEnd": true }
63
+ }
64
+ ]
65
+ }
66
+ },
67
+ {
68
+ "id": "wait_breathe",
69
+ "type": "wait",
70
+ "params": { "ms": 3000 }
71
+ },
72
+ {
73
+ "id": "finalize",
74
+ "type": "finalize",
75
+ "params": { "closeTab": true }
76
+ }
77
+ ]
78
+ }