Crates.io | sukurappa |
lib.rs | sukurappa |
version | 0.2.0 |
source | src |
created_at | 2022-08-14 15:41:22.015881 |
updated_at | 2022-08-21 19:48:44.078692 |
description | Watch for changes on a webpage and do anything with it! |
homepage | https://github.com/aeyoll/sukurappa |
repository | |
max_upload_size | |
id | 645462 |
size | 57,059 |
Watch for changes on a webpage and do anything with it!
With cargo:
cargo install sukurappa
Or use the install-script and add $HOME/.sukurappa/bin
to your $PATH
.
curl -fsSL https://raw.githubusercontent.com/aeyoll/sukurappa/main/install.sh | bash
# Add an url + selector to watch
sukurappa add --url https://example.org --selector "h1"
# Remove an url + selector to watch
sukurappa remove --url https://example.org --selector "h1"
# List watched urls + selectors
sukurappa list
# Watch for changes every 5 seconds and send an email with the new content every times it changes
# URL will be replaced with the actual url
# NEW_CONTENT will be replaced with... the new content
sukurappa watch --command='mail -s "[Sukurappa] Content changed in URL" my@email.com <<< NEW_CONTENT' --frequency=5
Rust >= 1.57.0+