Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    PyMollom 0.1

    Download button

    No screenshots available
    Downloads: 101  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Andy Georges | More programs
    GPL / FREE
    January 30th, 2012, 17:24 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    PyMollom description

    A Python library for the Mollom anti-spam service

    PyMollom is a Python library for the Mollom anti-spam service.

    Example:

    from Mollom import MollomAPI
    from Mollom import MollomFault

    def content_is_spam(content):
     mollom_api = MollomAPI(
     publicKey=MOLLOM_PUBLIC_KEY,
     privateKey=MOLLOM_PRIVATE_KEY)
     if not mollom_api.verifyKey():
     raise MollomFault('Your MOLLOM credentials are invalid.')

     cc = mollom_api.checkContent(postBody=content)
     # cc['spam']: 1 for ham, 2 for spam, 3 for unsure;
     # http://mollom.com/blog/spam-vs-ham
     if cc['spam'] == 2:
     return True
     return False



    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    Mollom anti-spam | Python library | Python | Mollom | anti-spam

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM