summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-06-20 21:44:06 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-06-20 21:44:06 (GMT)
commit5117558498601b0b59fb44338ab3ec82c7229dae (patch)
tree0e2fa8a8de7741a765d83516c596d95393b13941
parent98402d1c8bff854d16a074c0280f7499e624540f (diff)
Used black listed keywords to filter job titles.
-rw-r--r--cupinder.py9
1 files changed, 9 insertions, 0 deletions
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()