Initial work

This commit is contained in:
Frisk 2020-08-02 20:59:17 +02:00
parent 0f3fb86148
commit 0e46d4c971
No known key found for this signature in database
GPG key ID: 213F7C15068AF8AC

View file

@ -1,7 +1,10 @@
import logging import logging
from urllib.parse import urlparse
logger = logging.getLogger("rcgcdw.ratelimiter") logger = logging.getLogger("rcgcdw.ratelimiter")
class RateLimiter: class RateLimiter:
def __init__(self): def __init__(self):
self.domain_requests: dict = {} self.domain_requests: dict = {}
def get_timeout(self, url):