Class SmartContentSelector

java.lang.Object
us.codecraft.webmagic.selector.SmartContentSelector
All Implemented Interfaces:
Selector

public class SmartContentSelector extends Object implements Selector
Borrowed from https://code.google.com/p/cx-extractor/
Since:
0.4.1
Author:
code4crafter@gmail.com
  • Constructor Details

    • SmartContentSelector

      public SmartContentSelector()
  • Method Details

    • select

      public String select(String html)
      Description copied from interface: Selector
      Extract single result in text.
      If there are more than one result, only the first will be chosen.
      Specified by:
      select in interface Selector
      Parameters:
      html - text
      Returns:
      result
    • selectList

      public List<String> selectList(String text)
      Description copied from interface: Selector
      Extract all results in text.
      Specified by:
      selectList in interface Selector
      Parameters:
      text - text
      Returns:
      results