地质所 沉降监测网建设项目
chenhuan
2024-05-16 f992b4e508b358eba4170b1e9b1bb21319f7a3cd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.javaweb.spider.config;
 
public class SpiderConstants {
 
    public static final String CONFIG_FILE_NAME = "/FastConfig.json";
 
    /*爬虫任务-待执行*/
    public static final String SPIDER_MISSION_STATUS_WAIT="wait";
 
    /*爬虫任务-待执行*/
    public static final String SPIDER_MISSION_STATUS_RUNNING="running";
 
    /*爬虫任务-待执行*/
    public static final String SPIDER_MISSION_STATUS_DONE="done";
 
    /*爬虫任务-待执行*/
    public static final String SPIDER_MISSION_STATUS_ERROR="error";
    /*字段提取类型-css规则*/
    public static final String FIELD_EXTRACT_TYPE_CSS="css";
    /*字段提取类型-xpath规则*/
    public static final String FIELD_EXTRACT_TYPE_XPATH="xpath";
    /*字段提取类型-xpath规则*/
    public static final String FIELD_EXTRACT_TYPE_CONSTANT="constant";
    /*URL 博客园首页*/
    public static final String URL_CNBLOGS="https://www.cnblogs.com";
    /*博客园目标URL正则*/
    public static final String TARGET_URL_CNBLOGS="https://www.cnblogs.com/\\w+/p/\\d+.html";
 
    /*字段值处理类型-替换*/
    public static final String FIELD_PROCESS_TYPE_REPLACE="replace";
 
    /*字段值处理类型-截取*/
    public static final String FIELD_PROCESS_TYPE_SUBSTRING_BEFORE="substrbefore";
    public static final String FIELD_PROCESS_TYPE_SUBSTRING_AFTER="substrafter";
 
 
}