Answers for "python captcha library"

3

python captcha

from captcha.image import ImageCaptcha
import random, string

ran = ''.join(random.choices(string.ascii_letters + string.digits, k=5))

image = ImageCaptcha(width = 280, height = 90)

captcha_text = ran

data = image.generate(captcha_text)

image.write(captcha_text,"Captcha.png")
Posted by: Guest on August-23-2021
2

python captcha

from captcha.image import ImageCaptcha

image = ImageCaptcha(width = 280, height = 90)

captcha_text = "rand"

data = image.generate(captcha_text)

image.write(captcha_text,"Captcha.png")
Posted by: Guest on August-23-2021

Python Answers by Framework

Browse Popular Code Answers by Language