Package us.codecraft.webmagic.selector
Class PlainText
java.lang.Object
us.codecraft.webmagic.selector.AbstractSelectable
us.codecraft.webmagic.selector.PlainText
- All Implemented Interfaces:
Selectable
- Direct Known Subclasses:
Json
Selectable plain text.
Can not be selected by XPath or CSS Selector.
Can not be selected by XPath or CSS Selector.
- Since:
- 0.1.0
- Author:
- code4crafter@gmail.com
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class us.codecraft.webmagic.selector.AbstractSelectable
all, css, css, get, getFirstSourceText, jsonPath, match, regex, regex, replace, select, select, selectList, selectList, toString
-
Field Details
-
sourceTexts
-
-
Constructor Details
-
PlainText
-
PlainText
-
-
Method Details
-
create
-
xpath
Description copied from interface:Selectable
select list with xpath- Parameters:
xpath
- xpath- Returns:
- new Selectable after extract
-
$
Description copied from interface:Selectable
select list with css selector- Parameters:
selector
- css selector expression- Returns:
- new Selectable after extract
-
$
Description copied from interface:Selectable
select list with css selector- Parameters:
selector
- css selector expressionattrName
- attribute name of css selector- Returns:
- new Selectable after extract
-
links
Description copied from interface:Selectable
select all links- Returns:
- all links
-
nodes
Description copied from interface:Selectable
get all nodes- Returns:
- result
-
getSourceTexts
- Specified by:
getSourceTexts
in classAbstractSelectable
-