We do not want to use settings

This commit is contained in:
Rémi Oudin 2018-02-26 15:14:53 +01:00
parent 65f777f00f
commit bdfa285e6b

View file

@ -73,7 +73,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', 'mailto']
forbidden_words = ['login', 'agreement', 'mailto', 'settings']
links_list = [link for link in links_list if not any(word in link.lower()
for word in
forbidden_words)]