1
0
mirror of https://github.com/minoplhy/filters-maker.git synced 2024-12-22 18:18:13 +00:00

Update 'crawler.py'

This commit is contained in:
Kale 2021-08-02 08:25:59 -07:00
parent 6285c89ca2
commit 15a185e74b
No known key found for this signature in database
GPG Key ID: F8A6CE83F1274467

View File

@ -5,12 +5,13 @@ import re
print('starting . . . ')
def download_filters(url,incoming):
def clear_old_files(incoming):
try:
os.remove(incoming)
except OSError:
pass
def download_filters(url,incoming):
print("downloading: ",url)
get = requests.get(url)