From c6b31a21696855b5ea9f0df339a51e1e14d87cd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Fri, 14 Jul 2023 14:41:16 +0200 Subject: [PATCH] [reddit] set default 0.6s delay between requests (#4292) to limit API requests to 100 per minute https://www.reddit.com/r/redditdev/comments/14nbw6g/ --- gallery_dl/extractor/reddit.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gallery_dl/extractor/reddit.py b/gallery_dl/extractor/reddit.py index af79a7bd..54b162b3 100644 --- a/gallery_dl/extractor/reddit.py +++ b/gallery_dl/extractor/reddit.py @@ -20,6 +20,7 @@ class RedditExtractor(Extractor): filename_fmt = "{id}{num:? //>02} {title[:220]}.{extension}" archive_fmt = "{filename}" cookiedomain = ".reddit.com" + request_interval = 0.6 def items(self): self.api = RedditAPI(self)