Some checks failed
CI / CI is green (push) Has been cancelled
CI / Check Style (push) Has been cancelled
CI / feat.: blocking (push) Has been cancelled
CI / windows / stable-i686-gnu (push) Has been cancelled
CI / windows / stable-i686-msvc (push) Has been cancelled
CI / windows / stable-x86_64-gnu (push) Has been cancelled
CI / windows / stable-x86_64-msvc (push) Has been cancelled
CI / feat.: brotli (push) Has been cancelled
CI / feat.: cookies (push) Has been cancelled
CI / feat.: deflate (push) Has been cancelled
CI / feat.: gzip (push) Has been cancelled
CI / feat.: json (push) Has been cancelled
CI / feat.: multipart (push) Has been cancelled
CI / feat.: native-tls (push) Has been cancelled
CI / feat.: default-tls and rustls-tls (push) Has been cancelled
CI / feat.: socks/default-tls (push) Has been cancelled
CI / feat.: socks/rustls-tls (push) Has been cancelled
CI / feat.: stream (push) Has been cancelled
CI / feat.: trust-dns (push) Has been cancelled
CI / feat.: rustls-tls (push) Has been cancelled
CI / feat.: rustls-tls-manual-roots (push) Has been cancelled
CI / feat.: default-tls disabled (push) Has been cancelled
CI / linux / beta (push) Has been cancelled
CI / linux / stable (push) Has been cancelled
CI / macOS / stable (push) Has been cancelled
CI / Docs (push) Has been cancelled
CI / linux / nightly (push) Has been cancelled
CI / MSRV 1.57.0 (push) Has been cancelled
CI / Android (push) Has been cancelled
CI / WASM (push) Has been cancelled
Signed-off-by: Matthew Ransley <matthewransley5@gmail.com>
reqwest-impersonate
A fork of reqwest-impersonate, designed to provide more functionality and stability
Notice: This crate depends on patched dependencies. To use it, please add the following to your Cargo.toml.
[patch.crates-io]
hyper = { git = "https://github.com/4JX/hyper.git", branch = "v0.14.18-patched" }
h2 = { git = "https://github.com/4JX/h2.git", branch = "imp" }
Example
Cargo.toml
reqwest-impersonate = { git = "https://github.com/epicmatthew23/reqwest-impersonate.git", default-features = false, features = [
"chrome",
"blocking",
] }
main.rs
use reqwest_impersonate::browser::ChromeVersion;
fn main() {
// Build a client to mimic Chrome 114
let client = reqwest_impersonate::blocking::Client::builder()
.chrome_builder(ChromeVersion::V114)
.build()
.unwrap();
// Use the API you're already familiar with
match client.get("https://yoururl.com").send() {
Ok(res) => {
println!("{:?}", res.text().unwrap());
}
Err(err) => {
dbg!(err);
}
};
}
Description
Languages
Rust
99.6%
Nix
0.4%