Remove excluder input file after proceed

This commit is contained in:
minoplhy 2021-08-05 21:03:58 +07:00
parent 2811f73c08
commit 46f614c500
5 changed files with 3 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,3 +1,4 @@
import os
import crawler
def add(incoming,input):
@ -25,4 +26,5 @@ def add_file(incoming,excluded_in):
lines = set(f.readlines())
with open(incoming, 'w') as f:
f.writelines(set(lines))
crawler.sort(incoming)
crawler.sort(incoming)
os.remove(excluded_in)