python captcha

Solutions on MaxInterview for python captcha by the best coders in the world

showing results for - "python captcha"
Christina
20 Jan 2019
1from captcha.image import ImageCaptcha
2import random, string
3
4ran = ''.join(random.choices(string.ascii_letters + string.digits, k=5))
5
6image = ImageCaptcha(width = 280, height = 90)
7
8captcha_text = ran
9
10data = image.generate(captcha_text)
11
12image.write(captcha_text,"Captcha.png")
Uriel
14 Sep 2018
1from captcha.image import ImageCaptcha
2
3image = ImageCaptcha(width = 280, height = 90)
4
5captcha_text = "rand"
6
7data = image.generate(captcha_text)
8
9image.write(captcha_text,"Captcha.png")