Class ConfigurablePageProcessor
- java.lang.Object
-
- us.codecraft.webmagic.configurable.ConfigurablePageProcessor
-
- All Implemented Interfaces:
PageProcessor
public class ConfigurablePageProcessor extends java.lang.Object implements PageProcessor
- Author:
- code4crafter@gmail.com
-
-
Constructor Summary
Constructors Constructor Description ConfigurablePageProcessor(Site site, java.util.List<ExtractRule> extractRules)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Site
getSite()
Returns the site settings.void
process(Page page)
Processes the page, extract URLs to fetch, extract the data and store.
-
-
-
Constructor Detail
-
ConfigurablePageProcessor
public ConfigurablePageProcessor(Site site, java.util.List<ExtractRule> extractRules)
-
-
Method Detail
-
process
public void process(Page page)
Description copied from interface:PageProcessor
Processes the page, extract URLs to fetch, extract the data and store.- Specified by:
process
in interfacePageProcessor
- Parameters:
page
- page
-
getSite
public Site getSite()
Description copied from interface:PageProcessor
Returns the site settings.- Specified by:
getSite
in interfacePageProcessor
- Returns:
- site
- See Also:
Site
-
-