(self, server, key, debug=False)
Initialize the duplicates filter.

        Parameters
        ----------
        server : redis.StrictRedis
            The redis server instance.
        key : str
            Redis key Where to store fingerprints.
        debug : bool, optional
            Whether to log filtered requests.
Initialize the duplicates filter.
Initialize the duplicates filter .
def __init__(self, server, key, debug=False):
        """Initialize the duplicates filter.

        Parameters
        ----------
        server : redis.StrictRedis
            The redis server instance.
        key : str
            Redis key Where to store fingerprints.
        debug : bool, optional
            Whether to log filtered requests.

        """
        self.server = server
        self.key = key
        self.debug = debug
        self.bf = BloomFilter(server, key, blockNum=1)  # you can increase blockNum if your are filtering too many urls
        self.logdupes = True
def __init__ ( self , server , key , debug = False ) : self . server = server self . key = key self . debug = debug self . bf = BloomFilter ( server , key , blockNum = 1 ) # you can increase blockNum if your are filtering too many urls self . logdupes = True