{ "info": { "author": "Ilya Baryshev", "author_email": "baryshev@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3" ], "description": "Cleanweb\n========\n\n.. image:: https://travis-ci.org/coagulant/cleanweb.png?branch=master\n :target: https://travis-ci.org/coagulant/cleanweb\n\n.. image:: https://coveralls.io/repos/coagulant/cleanweb/badge.png?branch=master\n :target: https://coveralls.io/r/coagulant/cleanweb\n\nPython wrapper for cleanweb API of Yandex to fight spam.\n\n`Yandex.Clean Web`_ helps against spam in text message in comments, on forums, etc.\nIt detects spam messages based on their content and offers API for graphic CAPTCHA.\nTechnlogies that power Yandex.Mail spam defence are behind Yandex.Clean Web.\n\n.. _Yandex.Clean Web: http://api.yandex.ru/cleanweb/\n\nInstall\n-------\n* Install via pip::\n\n pip install cleanweb\n\n* If you understand and accept `licence agreement`_ you need to `Obtain mandatory API key`_ (yandex login is required)\n\nAPI is provided as is\n\n.. _licence agreement: http://legal.yandex.ru/cleanweb_api/\n.. _Obtain mandatory API key: http://api.yandex.ru/cleanweb/form.xml\n\nUsage\n-----\nExamples show basic usage of cleanweb api, for details check sources and `docs`_::\n\n >> from cleanweb import Cleanweb\n >> client = Cleanweb(key='cw.1.1.fc4c0c5c3be05adb04c9400214T193305Z')\n\n* check if message contains spam::\n\n >> client.check_spam(body='This might be some spam message')\n {'id': '036151771200000F', 'links': [], 'spam_flag': False}\n\n* get captcha to show bots::\n\n >> client.get_captcha()\n {'captcha': '20_iC0ZHRYtEllRhgEAngpsenpKGCIyi',\n 'url': 'http://i.captcha.yandex.net/image?key=20_iC0ZHRYtEllRhgEAngpsenpKGCIyi'}\n\n.. image:: http://habrastorage.org/storage2/1a3/fda/5f4/1a3fda5f431fe7be4ed116220d383d40.png\n\n* check captcha::\n\n >> client.check_captcha(captcha='20_iC0ZHRYtEllRhgEAngpsenpKGCIyi', value='48151632')\n True\n\n* complain on spam detector::\n\n >> client.complain(id='036151771200000F', is_spam=False)\n True\n\n.. _docs: http://api.yandex.ru/cleanweb/doc/dg/concepts/resources.xml", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/coagulant/cleanweb", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "cleanweb", "package_url": "https://pypi.org/project/cleanweb/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/cleanweb/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/coagulant/cleanweb" }, "release_url": "https://pypi.org/project/cleanweb/2.0/", "requires_dist": null, "requires_python": null, "summary": "Python wrapper for cleanweb API of Yandex to fight spam.", "version": "2.0" }, "last_serial": 787450, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "914d8b540999aad3e998af08fb481474", "sha256": "336f4e25b807285f5477fe865f350a44fb222e072149a68d4977bfdc2a694c09" }, "downloads": -1, "filename": "cleanweb-1.0.zip", "has_sig": false, "md5_digest": "914d8b540999aad3e998af08fb481474", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5421, "upload_time": "2013-02-17T18:15:01", "url": "https://files.pythonhosted.org/packages/7b/f1/1b33c9187de1a5e06ff43df5312def4cb9ca078c5c915ab2b53eb41e1804/cleanweb-1.0.zip" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "a62c32173af2e63d7bcb891b30223c5e", "sha256": "f0e56fc7061aa72255f3eeb3553414568568710678c56e9b52407a1c26727d47" }, "downloads": -1, "filename": "cleanweb-1.1.zip", "has_sig": false, "md5_digest": "a62c32173af2e63d7bcb891b30223c5e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5429, "upload_time": "2013-02-18T19:55:13", "url": "https://files.pythonhosted.org/packages/bb/5d/fbb4d3c89848d54c92573b8e96468edcf428b41732ddebc4fe15fec3d667/cleanweb-1.1.zip" } ], "2.0": [ { "comment_text": "", "digests": { "md5": "ed31bfa1fc1f4f95a632c89aa2b0d937", "sha256": "126ed1f730e5734ba4e17c0c775a5f4645bb1724f794171fe621ab05802dffcc" }, "downloads": -1, "filename": "cleanweb-2.0.zip", "has_sig": false, "md5_digest": "ed31bfa1fc1f4f95a632c89aa2b0d937", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6537, "upload_time": "2013-04-29T17:31:04", "url": "https://files.pythonhosted.org/packages/99/8e/734b1c8a276131bf31caabb7e73968b7b03acaa5671b11c2dc6171d48423/cleanweb-2.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ed31bfa1fc1f4f95a632c89aa2b0d937", "sha256": "126ed1f730e5734ba4e17c0c775a5f4645bb1724f794171fe621ab05802dffcc" }, "downloads": -1, "filename": "cleanweb-2.0.zip", "has_sig": false, "md5_digest": "ed31bfa1fc1f4f95a632c89aa2b0d937", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6537, "upload_time": "2013-04-29T17:31:04", "url": "https://files.pythonhosted.org/packages/99/8e/734b1c8a276131bf31caabb7e73968b7b03acaa5671b11c2dc6171d48423/cleanweb-2.0.zip" } ] }