Include Ireland posts in dataset creation

This commit is contained in:
2026-01-17 16:05:42 +00:00
parent ed3d89fd27
commit 38cf57e198

View File

@@ -19,7 +19,10 @@ def main():
reddit_posts = reddit_connector.get_new_subreddit_posts('cork', limit=500)
reddit_posts = remove_empty_posts(reddit_posts)
posts = boards_posts + reddit_posts
ireland_posts = reddit_connector.search_subreddit('cork', 'ireland', limit=500, timeframe='year')
ireland_posts = remove_empty_posts(ireland_posts)
posts = boards_posts + reddit_posts + ireland_posts
with open(data_file, 'w') as f:
json.dump([post.__dict__ for post in posts], f, indent=4)