Add mailto adresses to forbidden list

This commit is contained in:
Rémi Oudin 2018-02-24 15:41:46 +01:00
parent e56c088632
commit d19c2e8216

View file

@ -71,7 +71,7 @@ def url_getter(html, current_page, root_url):
# Works only with python >= 3.6
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()
for word in
forbidden_words)]