From 6f150065bc57692c5febe4a8e38d63b3843cf320 Mon Sep 17 00:00:00 2001 From: F0Rextasy <99847357+F0Rextasy@users.noreply.github.com> Date: Sun, 3 May 2026 17:46:13 +0300 Subject: [PATCH] Reject scrape with empty URL list (#93) --- crates/obscura-cli/src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/obscura-cli/src/main.rs b/crates/obscura-cli/src/main.rs index de5f3ca..1e28f78 100644 --- a/crates/obscura-cli/src/main.rs +++ b/crates/obscura-cli/src/main.rs @@ -465,6 +465,10 @@ async fn run_parallel_scrape( let total = urls.len(); let start = Instant::now(); + if total == 0 { + anyhow::bail!("No URLs provided. Pass at least one URL to scrape."); + } + eprintln!( "Scraping {} URLs with {} concurrent workers (per-worker timeout: {}s)...", total, concurrency, timeout_secs