@Override
    public void process(Page page) {
        List<String> requests = page.getHtml().links().regex(urlPattern).all();
        //add urls to fetch
        page.addTargetRequests(requests);
        //extract by XPath
        page.putField("title", page.getHtml().xpath("//title"));
        page.putField("html", page.getHtml().toString());
        //extract by Readability
        page.putField("content", page.getHtml().smartContent());
    }
A simple PageProcessor.

@author code4crafter@gmail.com <br>
@since 0.1.0
webmagic-core/src/main/java/us/codecraft/webmagic/processor/SimplePageProcessor.java