Browse Source

Add keywords to ignore in description to avoid useless ads

Nicolas Frandeboeuf 1 month ago
parent
commit
5b15ce6918
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      flatisfy/config.py

+ 6
- 1
flatisfy/config.py View File

@@ -38,7 +38,12 @@ DEFAULT_CONFIG = {
38 38
             "bedrooms": (None, None),  # (min, max)
39 39
             "minimum_nb_photos": None,  # min number of photos
40 40
             "description_should_contain": [],  # list of terms
41
-            "description_should_not_contain": [],  # list of terms
41
+            "description_should_not_contain": [  # list of terms
42
+                "vendu",
43
+                "Vendu",
44
+                "VENDU",
45
+                "recherche"
46
+            ],
42 47
             "time_to": {}  # Dict mapping names to {"gps": [lat, lng],
43 48
                            #                        "time": (min, max),
44 49
                            #                        "mode": Valid mode }