public class HtmlNode extends AbstractSelectable
Constructor and Description |
---|
HtmlNode() |
HtmlNode(List<org.jsoup.nodes.Element> elements) |
Modifier and Type | Method and Description |
---|---|
Selectable |
$(String selector)
select list with css selector
|
Selectable |
$(String selector,
String attrName)
select list with css selector
|
protected List<org.jsoup.nodes.Element> |
getElements() |
protected List<String> |
getSourceTexts() |
Selectable |
links()
select all links
|
List<Selectable> |
nodes()
get all nodes
|
Selectable |
select(Selector selector)
extract by custom selector
|
protected Selectable |
selectElements(BaseElementSelector elementSelector)
select elements
|
Selectable |
selectList(Selector selector)
extract by custom selector
|
Selectable |
smartContent()
select smart content with ReadAbility algorithm
|
Selectable |
xpath(String xpath)
select list with xpath
|
all, css, css, get, getFirstSourceText, jsonPath, match, regex, regex, replace, select, selectList, toString
public HtmlNode(List<org.jsoup.nodes.Element> elements)
public HtmlNode()
protected List<org.jsoup.nodes.Element> getElements()
public Selectable smartContent()
Selectable
public Selectable links()
Selectable
public Selectable xpath(String xpath)
Selectable
xpath
- xpathpublic Selectable selectList(Selector selector)
Selectable
selectList
in interface Selectable
selectList
in class AbstractSelectable
selector
- selectorpublic Selectable select(Selector selector)
Selectable
select
in interface Selectable
select
in class AbstractSelectable
selector
- selectorprotected Selectable selectElements(BaseElementSelector elementSelector)
elementSelector
- elementSelectorpublic Selectable $(String selector)
Selectable
selector
- css selector expressionpublic Selectable $(String selector, String attrName)
Selectable
selector
- css selector expressionattrName
- attribute name of css selectorpublic List<Selectable> nodes()
Selectable
protected List<String> getSourceTexts()
getSourceTexts
in class AbstractSelectable
Copyright © 2017. All rights reserved.