Class News163
java.lang.Object
us.codecraft.webmagic.model.samples.News163
- All Implemented Interfaces:
MultiPageModel
- Author:
- code4crafter@gmail.com
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncombine
(MultiPageModel multiPageModel) Combine multiPageModels to a whole object.other pages to be extracted.
It is used to judge whether an object contains more than one page, and whether the pages of the object are all extracted.getPage()
page is the identifier of a page in pages for one object.Page key is the identifier for the object.static void
toString()
-
Constructor Details
-
News163
public News163()
-
-
Method Details
-
getPageKey
Description copied from interface:MultiPageModel
Page key is the identifier for the object.- Specified by:
getPageKey
in interfaceMultiPageModel
- Returns:
- page key
-
getOtherPages
Description copied from interface:MultiPageModel
other pages to be extracted.
It is used to judge whether an object contains more than one page, and whether the pages of the object are all extracted.- Specified by:
getOtherPages
in interfaceMultiPageModel
- Returns:
- other pages
-
getPage
Description copied from interface:MultiPageModel
page is the identifier of a page in pages for one object.- Specified by:
getPage
in interfaceMultiPageModel
- Returns:
- page
-
combine
Description copied from interface:MultiPageModel
Combine multiPageModels to a whole object.- Specified by:
combine
in interfaceMultiPageModel
- Parameters:
multiPageModel
- multiPageModel- Returns:
- multiPageModel combined
-
toString
-
main
-