Package us.codecraft.webmagic.samples
Class GithubRepoPageProcessor
- java.lang.Object
-
- us.codecraft.webmagic.samples.GithubRepoPageProcessor
-
- All Implemented Interfaces:
PageProcessor
public class GithubRepoPageProcessor extends java.lang.Object implements PageProcessor
- Since:
- 0.5.1
- Author:
- code4crafter@gmail.com
-
-
Constructor Summary
Constructors Constructor Description GithubRepoPageProcessor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Site
getSite()
Returns the site settings.static void
main(java.lang.String[] args)
void
process(Page page)
Processes the page, extract URLs to fetch, extract the data and store.
-
-
-
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
-
main
public static void main(java.lang.String[] args)
-
-