Crates.io | chromiumoxide_stealth |
lib.rs | chromiumoxide_stealth |
version | 0.1.1 |
source | src |
created_at | 2024-07-23 04:01:08.102524 |
updated_at | 2024-07-29 02:55:51.928067 |
description | Enhance your Chromiumoxide automation with stealth capabilities |
homepage | |
repository | https://github.com/cloei/chromiumoxide_stealth |
max_upload_size | |
id | 1312373 |
size | 55,000 |
Enhance your Chromiumoxide automation with stealth capabilities
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(())
}