pub fn new_with_html(url: &str, html: &str) -> Result<Self, Error> {
        Ok(Self {
            url: Url::parse(url)?,
            html: Html::parse_document(html),
            selector: Selector::parse("a").expect("failed to create <a> selector"),
        })
    }
/// In case the HTML has already been fetched in advance, this can be used to parse from it directly.
In case the HTML has already been fetched in advance, this can be used to parse from it directly.
In case the HTML has already been fetched in advance this can be used to parse from it directly .
pub fn new_with_html(url: &str, html: &str) -> Result<Self, Error> {
        Ok(Self {
            url: Url::parse(url)?,
            html: Html::parse_document(html),
            selector: Selector::parse("a").expect("failed to create <a> selector"),
        })
    }
pub fn new_with_html ( url : & str , html : & str ) -> Result < Self , Error > { Ok ( Self { url : Url :: parse ( url ) ? , html : Html :: parse_document ( html ) , selector : Selector :: parse ( " " ) . expect ( " " ) , } ) }
In case the HTML has already been fetched in advance, this can be used to parse from it directly.
In case the HTML has already been fetched in advance this can be used to parse from it directly .
url
&str
html
&str
url
&str
html
&str