Compare commits
No commits in common. "main" and "direct-url" have entirely different histories.
main
...
direct-url
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -910,7 +910,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "nzz-cookie"
|
name = "nzz-cookie"
|
||||||
version = "0.2.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"clap",
|
"clap",
|
||||||
@ -921,7 +921,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "nzz-download"
|
name = "nzz-download"
|
||||||
version = "0.2.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"clap",
|
"clap",
|
||||||
|
@ -76,9 +76,9 @@ nzz-cookie -u 'myuser@example.com' <pw | nzz-download -f 2024-06-01 -t 2024-06-0
|
|||||||
|
|
||||||
## Caveats
|
## Caveats
|
||||||
|
|
||||||
There are no retries on a failed downloads so far, it just crashes. Stemming
|
There are no retries on a failed download so far, it just crashes. Stemming from
|
||||||
from that I would advise not to try and download big ranges at once until that
|
that I would advise not to try and download big ranges at once until that is
|
||||||
is fixed.
|
fixed.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "nzz-cookie"
|
name = "nzz-cookie"
|
||||||
version = "0.2.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = { workspace = true }
|
license = { workspace = true }
|
||||||
authors = { workspace = true }
|
authors = { workspace = true }
|
||||||
|
@ -30,16 +30,6 @@ pub async fn run(args: Config, pw: &str) -> Result<()> {
|
|||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
client.goto(LOGIN_URL).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?;
|
let login_button: Element = element_from_css(&client, ".fup-menu-login-container").await?;
|
||||||
sleep(Duration::from_millis(500)).await;
|
sleep(Duration::from_millis(500)).await;
|
||||||
login_button.click().await?;
|
login_button.click().await?;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "nzz-download"
|
name = "nzz-download"
|
||||||
version = "0.2.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = { workspace = true }
|
license = { workspace = true }
|
||||||
authors = { workspace = true }
|
authors = { workspace = true }
|
||||||
|
Loading…
Reference in New Issue
Block a user