Go to file
Justin Crawford 0db79b72d6
Fix a dependency problem when installing on fresh installs
2021-12-09 17:02:36 -08:00
examples Merge Changes (#2) 2021-01-03 06:11:09 +05:00
spamprotection Fix a dependency problem when installing on fresh installs 2021-12-09 17:02:36 -08:00
.gitattributes Initial commit 2021-01-02 10:08:55 +05:00
.gitignore Initial commit 2021-01-02 10:08:55 +05:00
LICENSE Initial commit 2021-01-02 10:08:55 +05:00
Makefile Merge Changes (#2) 2021-01-03 06:11:09 +05:00
README.md a detailed README.md 2021-01-31 23:42:24 +05:00
docs.md updated to v0.1.1 2021-01-31 23:27:25 +05:00
manage.py Merge Changes (#2) 2021-01-03 06:11:09 +05:00
requirements.txt Don't be so strict about dependency versions 2021-09-28 21:37:29 -07:00
requirements_dev.txt Updated to 0.0.3 2021-01-02 14:09:20 +05:00
setup.py updated to v0.1.1 2021-01-31 23:27:25 +05:00

README.md

Welcome to the Python-Spam-Protection-API wiki!

This library handles All Requests done to https://api.intellivoid.net/spamprotection/v1/lookup. To understand how this is meant to be used, please read the following Documentation

Getting Started

  • Installing the library:

    pip install Intellivoid-SPB

  • For those who wants to try out Development Builds:

    pip install git+https://github.com/intellivoid/Python-Spam-Protection-API

Usage

from spamprotection import SPBClient
import asyncio

loop = asyncio.get_event_loop()  # asyncio loop
client = SPBClient()  # spamprotection client


async def main():  # the main function to run in async loop
    user = input("Enter a Username or UserID to check Spam Prediction on SPB: ")
    status = await client.check_blacklist(user)
    if status.success:
        print(status.private_telegram_id)
    else:
        print("Polish Cow did not Approve this!")

if __name__ == "__main__":
    loop.run_until_complete(main())
    loop.close()

Examples

All Detailed Examples are in Examples Directory