Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
it.skrape.selects.html5.SectioningSelectors.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.
@file:Suppress("TooManyFunctions")
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.body(cssSelector: String = "", init: CssSelector.() -> T): T =
selection("body$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.div(cssSelector: String = "", init: CssSelector.() -> T): T =
selection("div$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.section(cssSelector: String = "", init: CssSelector.() -> T): T =
selection("section$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.nav(cssSelector: String = "", init: CssSelector.() -> T): T =
selection("nav$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.article(cssSelector: String = "", init: CssSelector.() -> T): T =
selection("article$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.aside(cssSelector: String = "", init: CssSelector.() -> T): T =
selection("aside$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.h1(cssSelector: String = "", init: CssSelector.() -> T): T =
selection("h1$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.h2(cssSelector: String = "", init: CssSelector.() -> T): T =
selection("h2$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.h3(cssSelector: String = "", init: CssSelector.() -> T): T =
selection("h3$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.h4(cssSelector: String = "", init: CssSelector.() -> T): T =
selection("h4$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.h5(cssSelector: String = "", init: CssSelector.() -> T): T =
selection("h5$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.h6(cssSelector: String = "", init: CssSelector.() -> T): T =
selection("h6$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.header(cssSelector: String = "", init: CssSelector.() -> T): T =
selection("header$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.footer(cssSelector: String = "", init: CssSelector.() -> T): T =
selection("footer$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.address(cssSelector: String = "", init: CssSelector.() -> T): T =
selection("address$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.main(cssSelector: String = "", init: CssSelector.() -> T): T =
selection("main$cssSelector", init)