Add explicit www. to reddit endpoint

This commit is contained in:
Galen Reich
2023-11-30 11:32:05 +00:00
committed by GitHub
parent 00688ea0e4
commit ad547b4eaf

View File

@@ -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()