From 5b15ce6918bb4ac25fe8ff33030d64190bdd49c1 Mon Sep 17 00:00:00 2001 From: Nicolas Frandeboeuf Date: Sun, 5 Jan 2020 12:17:01 +0100 Subject: [PATCH] Add keywords to ignore in description to avoid useless ads --- flatisfy/config.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/flatisfy/config.py b/flatisfy/config.py index ecc6bc4..841ce9a 100644 --- a/flatisfy/config.py +++ b/flatisfy/config.py @@ -38,7 +38,12 @@ DEFAULT_CONFIG = { "bedrooms": (None, None), # (min, max) "minimum_nb_photos": None, # min number of photos "description_should_contain": [], # list of terms - "description_should_not_contain": [], # list of terms + "description_should_not_contain": [ # list of terms + "vendu", + "Vendu", + "VENDU", + "recherche" + ], "time_to": {} # Dict mapping names to {"gps": [lat, lng], # "time": (min, max), # "mode": Valid mode }