From 5117558498601b0b59fb44338ab3ec82c7229dae Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Tue, 20 Jun 2017 23:44:06 +0200 Subject: Used black listed keywords to filter job titles. --- cupinder.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cupinder.py b/cupinder.py index 7835ea1..cb0d171 100644 --- a/cupinder.py +++ b/cupinder.py @@ -111,6 +111,15 @@ if __name__=='__main__': like = (language == config.TARGET_LANGUAGE) + if like and not(p._job_title is None): + + text = p._job_title.lower() + + for kwd in config.BLACK_LIST_KEYWORDS: + if kwd in text: + like = False + break + if like and not(p._bio is None): text = p._bio.lower() -- cgit v0.11.2-87-g4458