In this post, i have created a simple python based project for spam detection. For instance, if someone comments somewhere, that comment can be detected by using the following code.
- You need to download an IDE. In my case, i am using Visual Editor.
- You need to have Python downloaded in your computer.
text=input(“enter the text/ comment”)
if(“make a lot of money” in text):
elif(“buy now” in text):
elif(“click this” in text):
elif(“subscribe this” in text):
print(“this text is spam”)
The complete screenshot of the editor: