diff --git a/src/scraper/main.rs b/src/scraper/main.rs index f59b145..bc154ff 100644 --- a/src/scraper/main.rs +++ b/src/scraper/main.rs @@ -65,6 +65,8 @@ async fn main() { std::io::stdout().flush().unwrap(); } + posts.truncate(final_count); + match format { Format::Json => { let filename: String = output.unwrap_or_else(|| format!("{sub}.json"));