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

ai.platon.pulsar.skeleton.crawl.parse.Parser.kt Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version

package ai.platon.pulsar.skeleton.crawl.parse

import ai.platon.pulsar.common.config.Parameterized
import ai.platon.pulsar.persist.WebPage
import java.time.Duration

/**
 * A parser for content of Webpages. Multiple media types are supported.
 */
interface Parser : Parameterized {
    val timeout: Duration

    /**
     * This method parses content in WebPage instance
     * @param page
     */
    fun parse(page: WebPage): ParseResult
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy