crawlex 1.0.3

Stealth crawler with Chrome-perfect TLS/H2 fingerprint, render pool, hooks, persistent queue
Documentation
use crate::render::chrome_fetcher::version::VersionError;

use thiserror::Error;

pub type Result<T, E = FetcherError> = std::result::Result<T, E>;

#[derive(Debug, Error)]
pub enum FetcherError {
    #[error("Invalid browser version")]
    InvalidVersion(
        #[from]
        #[source]
        VersionError,
    ),

    #[error("No path available to download browsers to")]
    NoPathAvailable,

    #[error("Download of browser failed")]
    DownloadFailed(#[source] anyhow::Error),

    #[error("Installation of browser failed")]
    InstallFailed(#[source] anyhow::Error),

    #[error("OS {0} {1} is not supported")]
    UnsupportedOs(&'static str, &'static str),
}