Package us.codecraft.webmagic.selector
Class SmartContentSelector
java.lang.Object
us.codecraft.webmagic.selector.SmartContentSelector
- All Implemented Interfaces:
Selector
Borrowed from https://code.google.com/p/cx-extractor/
- Since:
- 0.4.1
- Author:
- code4crafter@gmail.com
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SmartContentSelector
public SmartContentSelector()
-
-
Method Details
-
select
Description copied from interface:Selector
Extract single result in text.
If there are more than one result, only the first will be chosen. -
selectList
Description copied from interface:Selector
Extract all results in text.- Specified by:
selectList
in interfaceSelector
- Parameters:
text
- text- Returns:
- results
-