@@ -0,0 +1,1079 @@
+package us.codecraft.webmagic.model.samples;%0A%0Aimport us.codecraft.webmagic.Site;%0Aimport us.codecraft.webmagic.model.ConsolePageModelPipeline;%0Aimport us.codecraft.webmagic.model.OOSpider;%0Aimport us.codecraft.webmagic.model.annotation.ExtractBy;%0Aimport us.codecraft.webmagic.model.annotation.HelpUrl;%0Aimport us.codecraft.webmagic.model.annotation.TargetUrl;%0A%0A/**%0A * @author code4crafter@gmail.com%0A */%0A@TargetUrl(%22http://www.jokeji.cn/jokehtml/jy/%5C%5Cd+.htm%22)%0A@HelpUrl(%22http://www.jokeji.cn/list%5C%5Cw+.htm%22)%0Apublic class JokejiModel %7B%0A%0A    @ExtractBy(%22//title/regex('%3Ctitle%3E(%5B%5E_%5D+)',1)%22)%0A    private String title;%0A%0A    @ExtractBy(%22//div%5B@class=mob_txt%5D/tidyText()%22)%0A    private String content;%0A%0A    public static void main(String%5B%5D args) %7B%0A        OOSpider.create(Site.me().setDomain(%22www.jokeji.cn%22).setCharset(%22gbk%22).setSleepTime(100).setTimeOut(3000)%0A                .setUserAgent(%22Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)%22)%0A                , new ConsolePageModelPipeline(), JokejiModel.class).addUrl(%22http://www.jokeji.cn/%22).thread(2).run();%0A    %7D%0A%0A%7D%0A

add jokejimodel for example