All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.skrape.selects.html5.TextContentSelectors.kt Maven / Gradle / Ivy

Go to download

A Kotlin-based testing/scraping/parsing library providing the ability to analyze and extract data from HTML (server & client-side rendered). It places particular emphasis on ease of use and a high level of readability by providing an intuitive DSL. First and foremost it aims to be a testing lib, but it can also be used to scrape websites in a convenient fashion.

There is a newer version: 1.3.0-alpha.2
Show newest version
package it.skrape.selects.html5

import it.skrape.selects.CssSelectable
import it.skrape.selects.CssSelector

/**
 * Will define a 
-tags css query selector. * By default it will just be the specific tag-name. * It is possible to define a more concrete selector by using the provided fields of the CssSelector object or * by passing a raw css query selector as parameter. * If a selector is passed as parameter as well as be defined via CssSelector fields, they will be merged. * @see CssSelector * @param cssSelector * @return T */ public fun CssSelectable.blockquote(cssSelector: String = "", init: CssSelector.() -> T): T = selection("blockquote$cssSelector", init) /** * Will define a
-tags css query selector. * By default it will just be the specific tag-name. * It is possible to define a more concrete selector by using the provided fields of the CssSelector object or * by passing a raw css query selector as parameter. * If a selector is passed as parameter as well as be defined via CssSelector fields, they will be merged. * @see CssSelector * @param cssSelector * @return T */ public fun CssSelectable.dd(cssSelector: String = "", init: CssSelector.() -> T): T = selection("dd$cssSelector", init) /** * Will define a -tags css query selector. * By default it will just be the specific tag-name. * It is possible to define a more concrete selector by using the provided fields of the CssSelector object or * by passing a raw css query selector as parameter. * If a selector is passed as parameter as well as be defined via CssSelector fields, they will be merged. * @see CssSelector * @param cssSelector * @return T */ public fun CssSelectable.dir(cssSelector: String = "", init: CssSelector.() -> T): T = selection("dir$cssSelector", init) /** * Will define a
-tags css query selector. * By default it will just be the specific tag-name. * It is possible to define a more concrete selector by using the provided fields of the CssSelector object or * by passing a raw css query selector as parameter. * If a selector is passed as parameter as well as be defined via CssSelector fields, they will be merged. * @see CssSelector * @param cssSelector * @return T */ public fun CssSelectable.dl(cssSelector: String = "", init: CssSelector.() -> T): T = selection("dl$cssSelector", init) /** * Will define a
-tags css query selector. * By default it will just be the specific tag-name. * It is possible to define a more concrete selector by using the provided fields of the CssSelector object or * by passing a raw css query selector as parameter. * If a selector is passed as parameter as well as be defined via CssSelector fields, they will be merged. * @see CssSelector * @param cssSelector * @return T */ public fun CssSelectable.dt(cssSelector: String = "", init: CssSelector.() -> T): T = selection("dt$cssSelector", init) /** * Will define a
-tags css query selector. * By default it will just be the specific tag-name. * It is possible to define a more concrete selector by using the provided fields of the CssSelector object or * by passing a raw css query selector as parameter. * If a selector is passed as parameter as well as be defined via CssSelector fields, they will be merged. * @see CssSelector * @param cssSelector * @return T */ public fun CssSelectable.figcaption(cssSelector: String = "", init: CssSelector.() -> T): T = selection("figcaption$cssSelector", init) /** * Will define a
-tags css query selector. * By default it will just be the specific tag-name. * It is possible to define a more concrete selector by using the provided fields of the CssSelector object or * by passing a raw css query selector as parameter. * If a selector is passed as parameter as well as be defined via CssSelector fields, they will be merged. * @see CssSelector * @param cssSelector * @return T */ public fun CssSelectable.figure(cssSelector: String = "", init: CssSelector.() -> T): T = selection("figure$cssSelector", init) /** * Will define a
-tags css query selector. * By default it will just be the specific tag-name. * It is possible to define a more concrete selector by using the provided fields of the CssSelector object or * by passing a raw css query selector as parameter. * If a selector is passed as parameter as well as be defined via CssSelector fields, they will be merged. * @see CssSelector * @param cssSelector * @return T */ public fun CssSelectable.hr(cssSelector: String = "", init: CssSelector.() -> T): T = selection("hr$cssSelector", init) /** * Will define a
  • -tags css query selector. * By default it will just be the specific tag-name. * It is possible to define a more concrete selector by using the provided fields of the CssSelector object or * by passing a raw css query selector as parameter. * If a selector is passed as parameter as well as be defined via CssSelector fields, they will be merged. * @see CssSelector * @param cssSelector * @return T */ public fun CssSelectable.li(cssSelector: String = "", init: CssSelector.() -> T): T = selection("li$cssSelector", init) /** * Will define a
      -tags css query selector. * By default it will just be the specific tag-name. * It is possible to define a more concrete selector by using the provided fields of the CssSelector object or * by passing a raw css query selector as parameter. * If a selector is passed as parameter as well as be defined via CssSelector fields, they will be merged. * @see CssSelector * @param cssSelector * @return T */ public fun CssSelectable.ol(cssSelector: String = "", init: CssSelector.() -> T): T = selection("ol$cssSelector", init) /** * Will define a
        -tags css query selector. * By default it will just be the specific tag-name. * It is possible to define a more concrete selector by using the provided fields of the CssSelector object or * by passing a raw css query selector as parameter. * If a selector is passed as parameter as well as be defined via CssSelector fields, they will be merged. * @see CssSelector * @param cssSelector * @return T */ public fun CssSelectable.ul(cssSelector: String = "", init: CssSelector.() -> T): T = selection("ul$cssSelector", init) /** * Will define a

        -tags css query selector. * By default it will just be the specific tag-name. * It is possible to define a more concrete selector by using the provided fields of the CssSelector object or * by passing a raw css query selector as parameter. * If a selector is passed as parameter as well as be defined via CssSelector fields, they will be merged. * @see CssSelector * @param cssSelector * @return T */ public fun CssSelectable.p(cssSelector: String = "", init: CssSelector.() -> T): T = selection("p$cssSelector", init) /** * Will define a

        -tags css query selector.
         * By default it will just be the specific tag-name.
         * It is possible to define a more concrete selector by using the provided fields of the CssSelector object or
         * by passing a raw css query selector as parameter.
         * If a selector is passed as parameter as well as be defined via CssSelector fields, they will be merged.
         * @see CssSelector
         * @param cssSelector
         * @return T
         */
        public fun  CssSelectable.pre(cssSelector: String = "", init: CssSelector.() -> T): T =
                selection("pre$cssSelector", init)
        




  • © 2015 - 2025 Weber Informatics LLC | Privacy Policy