Skip to content

Watch for changes on a webpage and do anything with it!

License

Notifications You must be signed in to change notification settings

aeyoll/sukurappa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sukurappa

GitHub Actions workflow status LICENSE Minimum rustc version Crates.io Version Conventional commits

Watch for changes on a webpage and do anything with it!

Install

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

Usage

# 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" [email protected] <<< NEW_CONTENT' --frequency=5

Rust version requirements

Rust >= 1.57.0+