[reddit] use REST API by default (#8559)
This commit is contained in:
@@ -4984,7 +4984,7 @@ extractor.reddit.api
|
||||
Type
|
||||
``string``
|
||||
Default
|
||||
``"oauth"``
|
||||
``"rest"``
|
||||
Description
|
||||
Selects which API endpoints to use.
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user