getting path to add ignore list

pull/907/head
Adrian Maraj 2024-04-08 16:59:49 +02:00 committed by Raphaël Vinot
parent 16deaf18c7
commit ebc6237f4b
1 changed files with 2 additions and 1 deletions

View File

@ -766,7 +766,8 @@ class Lookyloo():
def takedown_filtered(self, hostnode: HostNode) -> dict[str, Any] | None:
config = configparser.ConfigParser()
config.optionxform = str
config.read('/home/amaraj/Stage/Workshop/domain.ini')
ignorelist_path = get_homedir() / 'config' / 'ignore_list.ini'
config.read(ignorelist_path)
#checking if domain should be ignored
domains = config['domain']['ignore']
pattern = r"(https?://)?(www\d?\.)?(?P<domain>[\w\.-]+\.\w+)(/\S*)?"