org.seimicrawler.xpath.core.Constants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JsoupXpath Show documentation
Show all versions of JsoupXpath Show documentation
一个非常好用而且强大的基于xpath的html解析器。html的DOM树生成依赖Jsoup。Lexer 和 Parser基于Antlr4,支持完备的W3C XPATH 1.0标准语法,W3C规范:http://www.w3.org/TR/1999/REC-xpath-19991116。
The newest version!
package org.seimicrawler.xpath.core;
import java.util.regex.Pattern;
/**
* @author github.com/zhegexiaohuozi [email protected]
* @since 2020/9/24.
*/
public class Constants {
public final static String DEF_TEXT_TAG_NAME = "JX_TEXT";
public final static String EL_SAME_TAG_INDEX_KEY = "EL_SAME_TAG_INDEX";
public final static String EL_SAME_TAG_ALL_NUM_KEY = "EL_SAME_TAG_ALL_NUM";
public final static String EL_DEPTH_KEY = "EL_DEPTH";
public final static Pattern NUM_PATTERN = Pattern.compile("\\d*\\.?\\d+");
}