Add --post-count option
This commit is contained in:
parent
bdcc0def42
commit
a91e243ecc
3 changed files with 20 additions and 3 deletions
|
|
@ -82,7 +82,9 @@ async fn main() -> Result<()> {
|
|||
let reddit_client = RedditClient::new();
|
||||
let mut user_posts = MultiMap::new();
|
||||
for username in unique_usernames {
|
||||
let submissions = reddit_client.fetch_user_submissions(&username).await?;
|
||||
let submissions = reddit_client
|
||||
.fetch_user_submissions(&username, args.post_count)
|
||||
.await?;
|
||||
user_posts.insert_many(username, submissions);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue