cn.wanghaomiao.seimi.annotation.Xpath Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SeimiCrawler Show documentation
Show all versions of SeimiCrawler Show documentation
一个支持分布式的可以高效开发且可以高效运行的爬虫框架。设计思想上融合了spring与scrapy的优点。
package cn.wanghaomiao.seimi.annotation;
import java.lang.annotation.*;
/**
* 定义一个用于提取数据到指定字段的xpath路径
* @author 汪浩淼 [[email protected]]
* Date: 2015/5/28.
*/
@Target({ ElementType.TYPE, ElementType.FIELD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Xpath {
/**
* JsoupXpath支持的XPath语句,JsoupXpath默认支持标准的XPath语句,但也支持一些很有帮助的扩展,具体可以参见:https://github.com/zhegexiaohuozi/JsoupXpath
* @return
*/
String value();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy