Interface Selectable

    • Method Detail

      • xpath

        Selectable xpath​(java.lang.String xpath)
        select list with xpath
        Parameters:
        xpath - xpath
        Returns:
        new Selectable after extract
      • $

        Selectable $​(java.lang.String selector)
        select list with css selector
        Parameters:
        selector - css selector expression
        Returns:
        new Selectable after extract
      • $

        Selectable $​(java.lang.String selector,
                     java.lang.String attrName)
        select list with css selector
        Parameters:
        selector - css selector expression
        attrName - attribute name of css selector
        Returns:
        new Selectable after extract
      • css

        Selectable css​(java.lang.String selector)
        select list with css selector
        Parameters:
        selector - css selector expression
        Returns:
        new Selectable after extract
      • css

        Selectable css​(java.lang.String selector,
                       java.lang.String attrName)
        select list with css selector
        Parameters:
        selector - css selector expression
        attrName - attribute name of css selector
        Returns:
        new Selectable after extract
      • smartContent

        Selectable smartContent()
        select smart content with ReadAbility algorithm
        Returns:
        content
      • links

        Selectable links()
        select all links
        Returns:
        all links
      • regex

        Selectable regex​(java.lang.String regex)
        select list with regex, default group is group 1
        Parameters:
        regex - regex
        Returns:
        new Selectable after extract
      • regex

        Selectable regex​(java.lang.String regex,
                         int group)
        select list with regex
        Parameters:
        regex - regex
        group - group
        Returns:
        new Selectable after extract
      • replace

        Selectable replace​(java.lang.String regex,
                           java.lang.String replacement)
        replace with regex
        Parameters:
        regex - regex
        replacement - replacement
        Returns:
        new Selectable after extract
      • toString

        java.lang.String toString()
        single string result
        Overrides:
        toString in class java.lang.Object
        Returns:
        single string result
      • get

        java.lang.String get()
        single string result
        Returns:
        single string result
      • match

        boolean match()
        if result exist for select
        Returns:
        true if result exist
      • all

        java.util.List<java.lang.String> all()
        multi string result
        Returns:
        multi string result
      • jsonPath

        Selectable jsonPath​(java.lang.String jsonPath)
        extract by JSON Path expression
        Parameters:
        jsonPath - jsonPath
        Returns:
        result
      • select

        Selectable select​(Selector selector)
        extract by custom selector
        Parameters:
        selector - selector
        Returns:
        result
      • selectList

        Selectable selectList​(Selector selector)
        extract by custom selector
        Parameters:
        selector - selector
        Returns:
        result
      • nodes

        java.util.List<Selectable> nodes()
        get all nodes
        Returns:
        result