Skip to content

Commit

Permalink
New check for that postgraduate spammer
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtOfCode- committed Feb 15, 2017
1 parent a3c1043 commit fa4828b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions findspam.py
Expand Up @@ -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},
Expand Down

0 comments on commit fa4828b

Please sign in to comment.