From eff0e9fefd1c2ff3e2e0deb5208202d7cb2864f7 Mon Sep 17 00:00:00 2001 From: Johnshall <71166067+Johnshall@users.noreply.github.com> Date: Thu, 7 Apr 2022 11:22:41 +0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20=E6=9B=B4=E6=8D=A2?= =?UTF-8?q?=E5=88=B0=E6=AD=A3=E5=9C=A8=E6=9B=B4=E6=96=B0=E7=9A=84=20Greatf?= =?UTF-8?q?ire=20Analyzer=20=E7=88=AC=E8=99=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- factory/gfwlist.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/factory/gfwlist.py b/factory/gfwlist.py index 8df561f..a0c7fc1 100644 --- a/factory/gfwlist.py +++ b/factory/gfwlist.py @@ -4,7 +4,8 @@ # 下载并解析最新版本的 GFWList # 对于混合性质的网站,尽量走代理(忽略了所有的@@指令) # -# 从 https://github.com/Loyalsoldier/cn-blocked-domain 中获取GFWList的补充 +# 从 https://github.com/Johnshall/cn-blocked-domain 中获取GFWList的补充 +# 感谢 https://github.com/Loyalsoldier/cn-blocked-domain # @@ -88,7 +89,7 @@ def filtrate_rules(rules): return ret -# 从 https://github.com/Loyalsoldier/cn-blocked-domain 中获取GFWList的补充 +# 从 https://github.com/Johnshall/cn-blocked-domain 中获取GFWList的补充 def getURLs(url): r = requests.get(url) return r.text.split("\n")[:-1] @@ -101,8 +102,8 @@ rules = clear_format(rule) rules = filtrate_rules(rules) -rules.extend(getURLs('https://raw.githubusercontent.com/Loyalsoldier/cn-blocked-domain/release/domains.txt')) -rules.extend('https://raw.githubusercontent.com/Loyalsoldier/cn-blocked-domain/release/ip.txt') +rules.extend(getURLs('https://raw.githubusercontent.com/Johnshall/cn-blocked-domain/release/domains.txt')) +rules.extend('https://raw.githubusercontent.com/Johnshall/cn-blocked-domain/release/ip.txt') rules = list( set(rules) ) open('resultant/gfw.list', 'w', encoding='utf-8') \