mirror of
https://github.com/FutaGuard/LowTechFilter.git
synced 2025-06-21 05:21:02 +08:00
🔥 刪除舊程式碼
This commit is contained in:
parent
9e9c837275
commit
9a9ed1af03
@ -1,11 +0,0 @@
|
||||
import re
|
||||
|
||||
with open('../hosts_adb.txt', 'r') as files:
|
||||
data = files.read().splitlines()
|
||||
newdata = '\n'.join(data[5:])
|
||||
desc = '\n'.join(x.replace('!', '#') for x in data[:5]) + '\n'
|
||||
|
||||
with open('../domains_adb.txt', 'w') as output:
|
||||
pattern = r'(?<=^\|\|)\S+\.\S{2,}(?=\^)'
|
||||
desc += '\n'.join(re.findall(pattern, newdata, re.MULTILINE))
|
||||
output.write(desc)
|
Loading…
x
Reference in New Issue
Block a user