Skip to content

About

Captcha generation API made with Flask

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

13 stars

Watchers

1 watching

Forks

Latest commit

 

History

117 Commits

Folders and files

Repository files navigation

oxycaptcha

Fast, secure, adaptable captcha API made with Flask.

image

made-with-python License: MIT

This is a free-to-use, integrate-yourself Captcha API built with Python. It provides a Captcha, and it's solution, which makes it possible to be implemented anywhere with a bit of work (e.g. webapps, Discord Bots).

You can find the projects' homepage here.

Usage

The usage really boils down to making simple HTTP requests,

import requests
from io import BytesIO
from PIL import Image

captcha_data = requests.post("https://oxycaptcha.pythonanywhere.com/api/v5/captcha").json()
captcha_image_content = requests.get(captcha_data["cdn_url"]).content

# Show the image to the user
Image.open(BytesIO(captcha_image_content)).show()
attempt = input("What does the captcha say? >> ")

solution_check = requests.post(
    captcha_data["solution_check_url"], 
    json={"attempt": attempt}
).json()

if solution_check["case_sensitive_correct"] == True:
    print("Good job! That attempt was right.")
else:
    print("Err, not quite.")

API Documentations

You can find the API documentations here.

Contributing

Contributions are always welcome! In the CONTRIBUTING.md, you will find instructions & current TODO list.

About

Captcha generation API made with Flask

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

13 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages