Accept minimal tracking for nzz login.
This commit is contained in:
parent
ff7b1fc2e9
commit
ac740c76b6
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -910,7 +910,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "nzz-cookie"
|
||||
version = "0.1.0"
|
||||
version = "0.2.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"clap",
|
||||
@ -921,7 +921,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "nzz-download"
|
||||
version = "0.1.0"
|
||||
version = "0.2.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"clap",
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "nzz-cookie"
|
||||
version = "0.1.0"
|
||||
version = "0.2.0"
|
||||
edition = "2021"
|
||||
license = { workspace = true }
|
||||
authors = { workspace = true }
|
||||
|
@ -30,6 +30,16 @@ pub async fn run(args: Config, pw: &str) -> Result<()> {
|
||||
.await?;
|
||||
|
||||
client.goto(LOGIN_URL).await?;
|
||||
|
||||
sleep(Duration::from_millis(500)).await;
|
||||
let fu_open_button: Element = element_from_css(&client, ".cmpboxbtncustom").await?;
|
||||
fu_open_button.click().await?;
|
||||
|
||||
let fu_button: Element = element_from_css(&client, ".cmpboxbtn.cmpboxbtnyes.cmpboxbtnyescustomchoices.cmptxt_btn_save").await?;
|
||||
sleep(Duration::from_millis(500)).await;
|
||||
fu_button.click().await?;
|
||||
|
||||
|
||||
let login_button: Element = element_from_css(&client, ".fup-menu-login-container").await?;
|
||||
sleep(Duration::from_millis(500)).await;
|
||||
login_button.click().await?;
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "nzz-download"
|
||||
version = "0.1.0"
|
||||
version = "0.2.0"
|
||||
edition = "2021"
|
||||
license = { workspace = true }
|
||||
authors = { workspace = true }
|
||||
|
Loading…
Reference in New Issue
Block a user