diff --git a/webmagic-samples/src/main/java/us/codecraft/webmagic/model/samples/JokejiModel.java b/webmagic-samples/src/main/java/us/codecraft/webmagic/model/samples/JokejiModel.java new file mode 100644 index 00000000..e4e90fc3 --- /dev/null +++ b/webmagic-samples/src/main/java/us/codecraft/webmagic/model/samples/JokejiModel.java @@ -0,0 +1,29 @@ +package us.codecraft.webmagic.model.samples; + +import us.codecraft.webmagic.Site; +import us.codecraft.webmagic.model.ConsolePageModelPipeline; +import us.codecraft.webmagic.model.OOSpider; +import us.codecraft.webmagic.model.annotation.ExtractBy; +import us.codecraft.webmagic.model.annotation.HelpUrl; +import us.codecraft.webmagic.model.annotation.TargetUrl; + +/** + * @author code4crafter@gmail.com + */ +@TargetUrl("http://www.jokeji.cn/jokehtml/jy/\\d+.htm") +@HelpUrl("http://www.jokeji.cn/list\\w+.htm") +public class JokejiModel { + + @ExtractBy("//title/regex('