From ad547b4eaf86aecbb9399a3e849d3c352dde7475 Mon Sep 17 00:00:00 2001 From: Galen Reich <54807169+GalenReich@users.noreply.github.com> Date: Thu, 30 Nov 2023 11:32:05 +0000 Subject: [PATCH] Add explicit www. to reddit endpoint --- rpst/rpst.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpst/rpst.py b/rpst/rpst.py index d30f8b9..6ca7d1b 100644 --- a/rpst/rpst.py +++ b/rpst/rpst.py @@ -102,7 +102,7 @@ def get_posts(args: argparse): # Send a GET request to the specified subreddit and listing, # limiting the response by the specified limit and timeframe. response = session.get( - f"https://reddit.com/r/{subreddit}/{listing}" + f"https://www.reddit.com/r/{subreddit}/{listing}" f".json?limit={limit}&t={timeframe}" ).json()