1 stable release
1.0.0 | Nov 2, 2023 |
---|
#3 in #makeup
92KB
2K
SLoC
makeup-comparator
A CLI project made in Rust to compare different properties for makeup products from different websites.
How to use via CLI
cargo run -- --help # To get information.
# Standard call
cargo run -- --product "Product name" --max-results=3 --min-similarity=0.20 --websites=sephora-spain --websites=maquillalia
Run test locally
cargo test --workspace -- --include-ignored
Run test coverage locally
The objective is to keep code coverage for files under src/
above 95%.
./test_coverage.sh
TODO
Tier 1
- Format the output to show in terminal
- Create a server to receive petitions and translate them to command parameters. This way we could use the same logic to CLI and a future webpage.
- Add "on discount" parameter to retrieve products only that are on sale.
- Add a boolean in case the tone in a product exist but it is sold out.
Tier 2
- There are intermittent bugs when searching some products.
- Option to save the results in a json/csv/yaml.
Tier 3
- In SephoraSpain we only get the first 27 items (3 items * 9 rows). The search page has infinite scroll. Find a way to load all the results.
Dependencies
~9–21MB
~302K SLoC