bunkerweb/jobs/ExitNodes.py
2021-07-20 11:41:31 +02:00

12 lines
378 B
Python

from Job import Job
class ExitNodes(Job) :
def __init__(self, redis_host=None) :
name = "exit-nodes"
data = ["https://iplists.firehol.org/files/tor_exits.ipset"]
filename = "tor-exit-nodes.list"
type = "line"
regex = r"^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/?[0-9]*$"
super().__init__(name, data, filename, redis_host=redis_host, type=type, regex=regex)