Add mailto adresses to forbidden list
This commit is contained in:
parent
e56c088632
commit
d19c2e8216
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ def url_getter(html, current_page, root_url):
|
||||||
# Works only with python >= 3.6
|
# Works only with python >= 3.6
|
||||||
links_list = list(dict.fromkeys(links_list))
|
links_list = list(dict.fromkeys(links_list))
|
||||||
|
|
||||||
forbidden_words = ['login', 'agreement']
|
forbidden_words = ['login', 'agreement', 'mailto']
|
||||||
links_list = [link for link in links_list if not any(word in link.lower()
|
links_list = [link for link in links_list if not any(word in link.lower()
|
||||||
for word in
|
for word in
|
||||||
forbidden_words)]
|
forbidden_words)]
|
||||||
|
|
Loading…
Reference in a new issue