mirror of
https://github.com/Johnshall/Shadowrocket-ADBlock-Rules-Forever.git
synced 2025-12-17 15:24:43 +08:00
Remove top50
This commit is contained in:
@@ -148,12 +148,12 @@ for url in r.text.split("\n")[:-1]:
|
|||||||
domains_direct.append(url)
|
domains_direct.append(url)
|
||||||
|
|
||||||
# write files
|
# write files
|
||||||
file_proxy = open('resultant/top50_proxy.list', 'w', encoding='utf-8')
|
file_proxy = open('resultant/top500_proxy.list', 'w', encoding='utf-8')
|
||||||
file_direct = open('resultant/top50_direct.list', 'w', encoding='utf-8')
|
file_direct = open('resultant/top500_direct.list', 'w', encoding='utf-8')
|
||||||
|
|
||||||
now_time = time.strftime("%Y-%m-%d %H:%M:%S")
|
now_time = time.strftime("%Y-%m-%d %H:%M:%S")
|
||||||
file_proxy.write('# top50 proxy list update time: ' + now_time + '\n')
|
file_proxy.write('# top500 proxy list update time: ' + now_time + '\n')
|
||||||
file_direct.write('# top50 direct list update time: ' + now_time + '\n')
|
file_direct.write('# top500 direct list update time: ' + now_time + '\n')
|
||||||
|
|
||||||
domains_direct = list( set(domains_direct) )
|
domains_direct = list( set(domains_direct) )
|
||||||
domains_proxy = list( set(domains_proxy) )
|
domains_proxy = list( set(domains_proxy) )
|
||||||
|
|||||||
Reference in New Issue
Block a user