This commit is contained in:
Jing Ling
2020-02-29 16:56:08 +08:00
parent fc9f51ec17
commit fd18639259
+2 -2
View File
@@ -1,4 +1,3 @@
# coding=utf-8
import re
import tldextract
import config
@@ -38,7 +37,8 @@ class Domain(object):
:return: 导出结果
"""
extract_cache_file = config.data_storage_dir.joinpath('public_suffix_list.dat')
data_storage_dir = config.data_storage_dir
extract_cache_file = data_storage_dir.joinpath('public_suffix_list.dat')
tldext = tldextract.TLDExtract(extract_cache_file)
result = self.match()
if result: