A DART command-line application.
The application is designed to clean-up a CSV file with URIs from any unaccessible ones. As the result, the output CSV file will contain only URIs that are alive (or were alive at the moment of checking).
- unaccessible - any URI, GET request to which leads to 404 response code.
- alive - any URI, GET request to which leads to 200 response code.
- Install DART according to your platform needs: https://www.dartlang.org/install
- Clone the repository to your local
- change directory to the repository on your local machine
$ cd ~/whenever/uri_checker
- pull the dependencies with
$ pub get
- run the app with
$ dart bin/main.dart -h=http://domain.com -i=path/to/csv/file.csv -o=path/to/new/csv_file.csv
Defines HOST to check the URIs against [-h=url
]
-h=http://domain.com
Defines PATH to input CSV file with URIs to check [-i=path
]
-i=path/to/csv/file.csv
Defines output CSV FILE to write the results into [-o=path
]
-o=path/to/new/csv_file.csv
Unit tests are available at test/
directory.
All tests could be executed at once by running: $ pub run test test/
Available under a MIT License (see LICENSE file for details).