Cleanweb
Python wrapper for cleanweb API of Yandex to fight spam.
Yandex.Clean Web helps against spam in text message in comments, on forums, etc. It detects spam messages based on their content and offers API for graphic CAPTCHA. Technlogies that power Yandex.Mail spam defence are behind Yandex.Clean Web.
Install
Install via pip:
pip install cleanweb
If you understand and accept licence agreement you need to Obtain mandatory API key (yandex login is required)
API is provided as is
Usage
Examples show basic usage of cleanweb api, for details check sources and docs:
>> from cleanweb import Cleanweb >> client = Cleanweb(key='cw.1.1.fc4c0c5c3be05adb04c9400214T193305Z')
check if message contains spam:
>> client.check_spam(body='This might be some spam message') {'id': '036151771200000F', 'links': [], 'spam_flag': False}get captcha to show bots:
>> client.get_captcha() {'captcha': '20_iC0ZHRYtEllRhgEAngpsenpKGCIyi', 'url': 'http://i.captcha.yandex.net/image?key=20_iC0ZHRYtEllRhgEAngpsenpKGCIyi'}
check captcha:
>> client.check_captcha(captcha='20_iC0ZHRYtEllRhgEAngpsenpKGCIyi', value='48151632') True
complain on spam detector:
>> client.complain(id='036151771200000F', is_spam=False) True
Metadata
Release files for cleanweb 2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cleanweb-2.0.zip | 6.5 kB | Without provenance | Details for cleanweb-2.0.zip |
Release files / cleanweb-2.0.zip
| Download URL | cleanweb-2.0.zip |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
126ed1f730e5734ba4e17c0c775a5f4645bb1724f794171fe621ab05802dffcc
|
|
BLAKE2b-256 checksum How to use checksums |
998e734b1c8a276131bf31caabb7e73968b7b03acaa5671b11c2dc6171d48423
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for cleanweb 2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.