Skip to content

Commit 75bec76

Browse files
committed
Audio Captcha generator added
1 parent f5884d3 commit 75bec76

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

Audio Captcha Generator/128911.mp3

127 KB
Binary file not shown.

Audio Captcha Generator/166631.mp3

109 KB
Binary file not shown.

Audio Captcha Generator/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Audio Captcha Generator
2+
3+
## Description
4+
This snippet of code will Generate Audio-Captcha (Numbers).
5+
6+
## Requirements
7+
8+
`$ pip install captcha`
9+
10+
## Steps To Execution
11+
- Fork this repo and navigate to ShortenLinks folder
12+
- Run this code.py `$ python code.py`
13+
- Enter the length of captcha you want (i.e 6)
14+
- Boom !!! captcha with .mp3 extension will be generate in dir.
15+
- Enjoy the Audio Captcha Thing !!!!!
16+
17+
## Code Output

Audio Captcha Generator/code.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from captcha.audio import AudioCaptcha
2+
from random import randint
3+
audio = AudioCaptcha()
4+
num = randint(100000,999999)
5+
data = audio.generate(str(num))
6+
audio.write(str(num), str(num)+'.mp3')
7+
print(num)

0 commit comments

Comments
 (0)