Class News163

java.lang.Object
us.codecraft.webmagic.model.samples.News163
All Implemented Interfaces:
MultiPageModel

public class News163 extends Object implements MultiPageModel
Author:
code4crafter@gmail.com
  • Constructor Details

    • News163

      public News163()
  • Method Details

    • getPageKey

      public String getPageKey()
      Description copied from interface: MultiPageModel
      Page key is the identifier for the object.
      Specified by:
      getPageKey in interface MultiPageModel
      Returns:
      page key
    • getOtherPages

      public Collection<String> 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 interface MultiPageModel
      Returns:
      other pages
    • getPage

      public String getPage()
      Description copied from interface: MultiPageModel
      page is the identifier of a page in pages for one object.
      Specified by:
      getPage in interface MultiPageModel
      Returns:
      page
    • combine

      public MultiPageModel combine(MultiPageModel multiPageModel)
      Description copied from interface: MultiPageModel
      Combine multiPageModels to a whole object.
      Specified by:
      combine in interface MultiPageModel
      Parameters:
      multiPageModel - multiPageModel
      Returns:
      multiPageModel combined
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • main

      public static void main(String[] args)