makeup-comparator

Crates.iomakeup-comparator
lib.rsmakeup-comparator
version1.0.0
sourcesrc
created_at2023-11-02 13:18:50.440421
updated_at2023-11-02 13:18:50.440421
descriptionCLI program look for cosmetic products within a various specialized websites and compare them
homepagehttps://github.com/RubenRubioM/makeup-comparator
repositoryhttps://github.com/RubenRubioM/makeup-comparator
max_upload_size
id1022621
size91,234
Ruben (RubenRubioM)

documentation

README

makeup-comparator

Rust

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.
Commit count: 145

cargo fmt