Skip to content

The headless browser for AI agents and web scraping

Reject scrape with empty URL list (#93)

F0Rextasy6f150065bc57
diff --git a/crates/obscura-cli/src/main.rs b/crates/obscura-cli/src/main.rs
index de5f3ca7..1e28f789 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