spam-blocklistsSpam related services interface | |
Download |
spam-blocklists Ranking & Summary
Advertisement
- License:
- LGPL v3
- Price:
- FREE
- Publisher Name:
- Federico Marani
- Publisher web site:
- https://github.com/fmarani/
spam-blocklists Tags
spam-blocklists Description
spam-blocklists is a Python library to verify whether an URL has been classified as spam.Supports:- SpamHaus zen- Surbl multiPlanned:- PhishTankFor any further information, you can watch the tutorial here: http://www.youtube.com/watch?v=anwy2MPT5REInstallFrom PyPI (stable):pip install spam-blocklistsFrom Github (unstable):pip install git+git://github.com/fmarani/spam.git#egg=spam-blocklistsUseSpamhaus:>>> from spam.spamhaus import SpamHausChecker>>> checker = SpamHausChecker()# google.com is a good domain>>> checker.is_spam("http://www.google.com/search?q=food")False# this domain does not exist>>> checker.is_spam("http://buyv1agra.com/")Traceback (most recent call last): ...DomainInexistentException# this is a scam>>> checker.is_spam("http://mihouyuan.com/login.htm")TrueSurbl:>>> from spam.surbl import SurblChecker>>> checker = SurblChecker()# google.com test>>> checker.is_spam("http://www.google.com/search?q=food")False# spamhaus says it is spam, surbl does not>>> checker.is_spam("http://mihouyuan.com/login.htm")False# test endpoint for surbl>>> checker.is_spam("http://surbl-org-permanent-test-point.com/")TrueContributeClone and install testing dependencies:pip install -r requirements.txtEnsure tests pass:./runtests.shProduct's homepage
spam-blocklists Related Software