Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 19 lines (11 sloc) 295 Bytes
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import hashlib
VERSION = 1
class FailedAnalysis(Exception):
pass
def is_spam(domain):
# returns dummy result, but consistent for a domain
hasher = hashlib.md5()
hasher.update(domain.encode("utf-8"))
return hasher.digest()[0] > 127