mirror of
https://github.com/bellingcat/reddit-post-scraping-tool.git
synced 2026-06-13 05:58:29 +03:00
Add explicit www. to reddit endpoint
This commit is contained in:
@@ -102,7 +102,7 @@ def get_posts(args: argparse):
|
|||||||
# Send a GET request to the specified subreddit and listing,
|
# Send a GET request to the specified subreddit and listing,
|
||||||
# limiting the response by the specified limit and timeframe.
|
# limiting the response by the specified limit and timeframe.
|
||||||
response = session.get(
|
response = session.get(
|
||||||
f"https://reddit.com/r/{subreddit}/{listing}"
|
f"https://www.reddit.com/r/{subreddit}/{listing}"
|
||||||
f".json?limit={limit}&t={timeframe}"
|
f".json?limit={limit}&t={timeframe}"
|
||||||
).json()
|
).json()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user