Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arcaptcha GitHub PyPI

Validate and display captcha from Arcaptcha easily in Python. (PyPI)

Installation

The package can be installed easily by pip install arcaptcha command.

Usage

# Import the package to the project
from arcaptcha import Arcaptcha

# Create a new instance of Captcha object
captcha = Arcaptcha.Captcha(site_key = "my_site_key", secret_key = "my_secret_key")

# Verify challenge
>>> captcha.verify(challenge_id = "example_challenge_id")
True

# Display API script tag
>>> captcha.display_tag()
"<script src='https://widget.arcaptcha.ir/1/api.js' async defer></script>"

# Display captcha HTML tag
>>> captcha.display()
"<div class='arcaptcha' data-site-key='my_site_key'></div>"

About

Python package for Arcaptcha

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages