This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

A library to verify whether an url has been classified as spam

Supports:

  • SpamHaus zen
  • Surbl multi

Planned:

  • PhishTank

For any further information, you can watch the tutorial here: http://www.youtube.com/watch?v=anwy2MPT5RE

Install

From PyPI (stable):

pip install spam-blocklists

From Github (unstable):

pip install git+git://github.com/fmarani/spam.git#egg=spam-blocklists

Use

Spamhaus:

>>> 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")
True

Surbl:

>>> 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/")
True

Contribute

Clone and install testing dependencies:

pip install -r requirements.txt

Ensure tests pass:

./runtests.sh
Release History

Release History

0.9.3

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.9.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.9.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.9

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
spam-blocklists-0.9.3.tar.gz (18.9 kB) Copy SHA256 Checksum SHA256 Source May 26, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting