From 402afc53d7f6aea64b11fdc10c560e26e69ff862 Mon Sep 17 00:00:00 2001 From: azerpas Date: Fri, 9 Jan 2026 19:30:46 +0100 Subject: [PATCH] feat: new firefox ua --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- src/bourso_api/Cargo.toml | 2 +- src/bourso_api/src/client/mod.rs | 4 +++- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3208b84..38457e7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -160,7 +160,7 @@ checksum = "1be3f42a67d6d345ecd59f675f3f012d6974981560836e938c22b424b85ce1be" [[package]] name = "bourso-cli" -version = "0.5.1" +version = "0.5.2" dependencies = [ "anyhow", "bourso_api", @@ -177,7 +177,7 @@ dependencies = [ [[package]] name = "bourso_api" -version = "0.5.1" +version = "0.5.2" dependencies = [ "anyhow", "async-stream", diff --git a/Cargo.toml b/Cargo.toml index da9591d..c1559e6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bourso-cli" -version = "0.5.1" +version = "0.5.2" edition = "2021" repository = "https://github.com/azerpas/bourso-api" diff --git a/src/bourso_api/Cargo.toml b/src/bourso_api/Cargo.toml index ac20b94..9e3e845 100644 --- a/src/bourso_api/Cargo.toml +++ b/src/bourso_api/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bourso_api" -version = "0.5.1" +version = "0.5.2" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/bourso_api/src/client/mod.rs b/src/bourso_api/src/client/mod.rs index 30e469a..06e1e23 100644 --- a/src/bourso_api/src/client/mod.rs +++ b/src/bourso_api/src/client/mod.rs @@ -138,7 +138,9 @@ impl BoursoWebClient { // Chrome on Windows "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36", // Chrome on MacOS - "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36" + "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36", + // Firefox on Windows + "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:146.0) Gecko/20100101 Firefox/146.0", ]; let ua = uas.choose(&mut rand::rng()).unwrap();