Chromiumoxide Stealth is a Rust library designed to integrate seamlessly with the chromiumoxide
crate, providing additional stealth capabilities for automated browsing sessions. This project follow selenium-stealth and puppeteer-extra-plugin-stealth implementation.
To use Chromiumoxide Stealth in your project, add it as a dependency in your Cargo.toml
:
[dependencies]
chromiumoxide_stealth = { git = "https://github.com/cloei/chromiumoxide_stealth" }
use chromiumoxide_stealth;
use chromiumoxide::{Browser, BrowserConfig};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let (browser, _) = Browser::launch(BrowserConfig::default()).await?;
let page = browser.new_page("https://example.com").await?;
chromiumoxide_stealth::inject(&page).await?;
Ok(())
}