https://github.com/nezutero/urlprobe
simple command-line tool in rust which is checking url health and performance
https://github.com/nezutero/urlprobe
automation benchmark clap-rs cli latency-test rust rust-cli url-benchmark url-checker url-health url-health-checker url-latency
Last synced: 7 months ago
JSON representation
simple command-line tool in rust which is checking url health and performance
- Host: GitHub
- URL: https://github.com/nezutero/urlprobe
- Owner: nezutero
- License: mit
- Created: 2023-10-14T17:13:01.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-22T18:10:38.000Z (about 1 year ago)
- Last Synced: 2025-01-24T06:11:25.624Z (9 months ago)
- Topics: automation, benchmark, clap-rs, cli, latency-test, rust, rust-cli, url-benchmark, url-checker, url-health, url-health-checker, url-latency
- Language: Rust
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Features
- 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.## Installation
```sh
git clone https://github.com/kenjitheman/urlprobe
``````sh
cargo build --release
``````sh
cargo run --bin urlprobe
```## Usage
### Options
- `-s, --source `: Specify the data source (Required).
- ``: The data source type. Must be one of: `json`, `csv`, `txt`, or `list`- `-f, --file `: Specify the data source file
- ``: The filename to read data from- `-u, --urls `: Specify the URLs to probe
- ``: A list of URLs to probe- `-h, --help`: Print help information
- `-V, --version`: Print the version information
### Examples
- Json structure example
```json
{
"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`
```sh
cargo run --bin urlprobe -s json -f data.json
```- CSV structure example
```csv
urls
https://google.com
https://github.com
https://facebook.com
https://twitter.com
```- This command probes URLs from the CSV file `data.csv`
```sh
cargo run --bin urlprobe -s csv -f data.csv
```- TXT structure example
```txt
https://google.com
https://github.com
https://twitter.com
https://youtube.com
```- This command probes URLs from the TXT file `data.txt`
```sh
cargo run --bin urlprobe -s txt -f data.txt
```- Using command-line arguments
- This command probes the specified list of URLs```sh
cargo run --bin urlprobe -s list -u https://example.com https://test.com
```## Contributing
- 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.
## License
- [MIT](./LICENSE)