Reject scrape with empty URL list (#93)

This commit is contained in:
F0Rextasy authored and GitHub committed 2026-05-03 16:46:13 +02:00
1 parent 986bcf5b8e
commit 6f150065bc
1 file changed
+4
+4
View File
@@ -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