Skip to main content

Crate clawser_browser

Crate clawser_browser 

Source
Expand description

§clawser-browser

Async antidetect browser powered by a patched Chromium + CDP. Native tokio support — all methods are async.

use clawser_browser::Browser;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let browser = Browser::builder()
        .headful()
        .random()
        .build().await?;
    let page = browser.navigate("https://example.com").await?;
    page.human_idle(2000).await?;
    let title = page.js("document.title").await?;
    println!("{}", title);
    browser.shutdown().await?;
    Ok(())
}

Re-exports§

pub use profiles::HwProfile;
pub use types::Cookie;
pub use types::Response;

Modules§

profiles
100 realistic device profiles from Steam Hardware Survey + StatCounter data.
types

Structs§

Browser
A browser instance = 1 chrome.exe process + CDP connection.
BrowserBuilder
Builder for creating a browser instance.
Page
A loaded page within the browser.