From 7bdd7d4fc62b06aaabe27bf6adf108367243ad48 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Sun, 27 Mar 2022 19:03:21 +0100 Subject: [PATCH] Allow specifying an intent with the qp-rake1 CLI --- quickpeep_raker/src/bin/qp-rake1.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quickpeep_raker/src/bin/qp-rake1.rs b/quickpeep_raker/src/bin/qp-rake1.rs index 64e2b66..7e738ed 100644 --- a/quickpeep_raker/src/bin/qp-rake1.rs +++ b/quickpeep_raker/src/bin/qp-rake1.rs @@ -76,7 +76,9 @@ pub async fn main() -> anyhow::Result<()> { page_extraction: PageExtractionService::new(adblock_engines)?, }; - let outcome = raker.rake(&opts.url, RakeIntent::Any, &client).await?; + let outcome = raker + .rake(&opts.url, opts.intent.unwrap_or(RakeIntent::Any), &client) + .await?; match outcome { RakeOutcome::RakedPage(page) => {