From 38cf57e198bb76dae2ac5e818f05952884682161 Mon Sep 17 00:00:00 2001 From: Dylan De Faoite Date: Sat, 17 Jan 2026 16:05:42 +0000 Subject: [PATCH] Include Ireland posts in dataset creation --- create_dataset.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/create_dataset.py b/create_dataset.py index 37043c8..baa532f 100644 --- a/create_dataset.py +++ b/create_dataset.py @@ -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)