Remove excluder input file after proceed
This commit is contained in:
parent
2811f73c08
commit
46f614c500
BIN
__pycache__/crawler.cpython-37.pyc
Normal file
BIN
__pycache__/crawler.cpython-37.pyc
Normal file
Binary file not shown.
BIN
__pycache__/crawler.cpython-39.pyc
Normal file
BIN
__pycache__/crawler.cpython-39.pyc
Normal file
Binary file not shown.
BIN
__pycache__/excluder.cpython-37.pyc
Normal file
BIN
__pycache__/excluder.cpython-37.pyc
Normal file
Binary file not shown.
BIN
__pycache__/excluder.cpython-39.pyc
Normal file
BIN
__pycache__/excluder.cpython-39.pyc
Normal file
Binary file not shown.
@ -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)
|
Loading…
Reference in New Issue
Block a user