This commit is contained in:
Jing Ling
2020-08-19 13:18:17 +08:00
parent 53abb0fc90
commit 6a0df57dd7
2 changed files with 5 additions and 6 deletions
+1 -2
View File
@@ -26,8 +26,7 @@ class Search(Module):
:rtype: str
"""
statements_list = []
subdomains_temp = set(map(lambda x: x + '.' + domain,
settings.subdomains_common))
subdomains_temp = set(map(lambda x: x + '.' + domain, settings.common_subnames))
subdomains_temp = list(subdomain.intersection(subdomains_temp))
for i in range(0, len(subdomains_temp), 2): # 同时排除2个子域
statements_list.append(''.join(set(map(lambda s: ' -site:' + s,
+1 -1
View File
@@ -154,7 +154,7 @@ limit_open_conn = None # 限制同一时间打开的连接总数,默认None
# 限制同一时间在同一个端点((host, port, is_ssl) 3者都一样的情况)打开的连接数
limit_per_host = 10 # 0表示不限制,默认10
subdomains_common = {'i', 'w', 'm', 'en', 'us', 'zh', 'w3', 'app', 'bbs',
common_subnames = {'i', 'w', 'm', 'en', 'us', 'zh', 'w3', 'app', 'bbs',
'web', 'www', 'job', 'docs', 'news', 'blog', 'data',
'help', 'live', 'mall', 'blogs', 'files', 'forum',
'store', 'mobile'}