[reddit] use REST API by default (#8559)

This commit is contained in:
Mike Fährmann
2025-11-16 19:17:08 +01:00
parent 6ee7096558
commit 3b33c25378
3 changed files with 4 additions and 3 deletions

View File

@@ -4984,7 +4984,7 @@ extractor.reddit.api
Type
``string``
Default
``"oauth"``
``"rest"``
Description
Selects which API endpoints to use.

View File

@@ -672,11 +672,12 @@
},
"reddit":
{
"cookies" : null,
"client-id" : null,
"user-agent" : null,
"refresh-token": null,
"api" : "oauth",
"api" : "rest",
"comments" : 0,
"morecomments": false,
"embeds" : true,

View File

@@ -394,7 +394,7 @@ class RedditAPI():
self.morecomments = config("morecomments", False)
self._warn_429 = False
if config("api") == "rest":
if config("api") != "oauth":
self.root = "https://www.reddit.com"
self.headers = None
self.authenticate = util.noop