From fa4828b1ac0e5711a5378e9892b5b2cd2c4db74d Mon Sep 17 00:00:00 2001 From: ArtOfCode Date: Wed, 15 Feb 2017 15:42:32 +0000 Subject: [PATCH] New check for that postgraduate spammer --- findspam.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/findspam.py b/findspam.py index 4d6ea4d6f3..c8f5d22207 100644 --- a/findspam.py +++ b/findspam.py @@ -405,6 +405,9 @@ class FindSpam: {'regex': ur"(?i)\b(?!s.m.a.r.t)[a-z]\.+[a-z]\.+[a-z]\.+[a-z]\.+[a-z]\b", 'all': True, 'sites': [], 'reason': "bad keyword in {}", 'title': True, 'body': False, 'username': False, 'stripcodeblocks': False, 'body_summary': False, 'max_rep': 1, 'max_score': 0}, + {'regex': ur'(?i)[\w\s]{0,20}help(?: a)?(?: weak)? postgraduate student(?: to)? write(?: a)? book\??', + 'all': True, 'sites': [], 'reason': 'bad keyword in {}', 'title': True, 'body': False, 'username': False, + 'stripcodeblocks': False, 'body_summary': False, 'max_rep': 20, 'max_score': 2}, # Eltima: separated into its own method so we can constrain length {'method': has_eltima, 'all': True, 'sites': [], 'reason': "bad keyword in {}", 'title': False, 'body': True, 'username': False, 'stripcodeblocks': False, 'body_summary': False, 'max_rep': 50, 'max_score': 0},