- A simple command-line tool in Rust which is checking url health and performance.
- Provides a command-line interface for checking url health and performance.
git clone https://github.com/kenjitheman/urlprobe
cargo build --release
cargo run --bin urlprobe
-
-s, --source <SOURCE>
: Specify the data source (Required).<SOURCE>
: The data source type. Must be one of:json
,csv
,txt
, orlist
-
-f, --file <FILENAME>
: Specify the data source file<FILENAME>
: The filename to read data from
-
-u, --urls <URLS...>
: Specify the URLs to probe<URLS...>
: A list of URLs to probe
-
-h, --help
: Print help information -
-V, --version
: Print the version information
- Json structure example
{
"urls": [
"https://google.com",
"https://github.com",
"https://twitter.com",
"https://youtube.com",
"https://instagram.com",
"https://wikipedia.org",
]
}
- This command probes URLs from the JSON file
data.json
cargo run --bin urlprobe -s json -f data.json
- CSV structure example
urls
https://google.com
https://github.com
https://facebook.com
https://twitter.com
- This command probes URLs from the CSV file
data.csv
cargo run --bin urlprobe -s csv -f data.csv
- TXT structure example
https://google.com
https://github.com
https://twitter.com
https://youtube.com
- This command probes URLs from the TXT file
data.txt
cargo run --bin urlprobe -s txt -f data.txt
- Using command-line arguments
- This command probes the specified list of URLs
cargo run --bin urlprobe -s list -u https://example.com https://test.com
-
Pull requests are welcome, for major changes, please open an issue first to discuss what you would like to change.
-
Please make sure to update tests as appropriate.