A Python library for solving captchas using noCaptchaAi.com
Pending (pip install nocaptchaai
) until PyPi Admin Enables new projects.
from nocaptchaai.main import qCaptchaToken, OCR
apikey = "apikey" # https://dash.nocaptchaai.com/
image_url = "https://cdn.discordapp.com/attachments/997770328275165224/1109737255494484050/captcha.png"
# OCR
ocr = OCR(apikey)
ocr.solve(image_url)
# qCaptcha Token
payload = {
# "proxy": {
# "ip": "123.45.678.9",
# "port": 1234,
# "username": "userid",
# "password": "pass#=#rd",
# "type": "https"
# },
# "rqdata": "eyJ0zI1NiJ9.eyJmIjowLCJ....",
"type": "qcaptcha",
"url": "accounts.qcaptcha.com",
"sitekey": "7830874c-13ad-4cfe-98d7-e8b019dc1742",
"useragent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36"
}
token = hCaptchaToken(apikey)
token.solve(payload)
$ python example.py
>>>
77325
task status: {'id': 'h_tok_ECjqkKCfrIH9q19q', 'message': 'Task created.', 'status': 'created', 'url': 'https://pro.nocaptchaai.com/token?id=h_tok_ECjqkKCfrIH9q19q'}
waiting 7sec for response...
status: processing
status: processing
time since request:- 13 seconds
status: processed
P1_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.hKdwYXNza2V5xQcpBnHwrBVQBVDa_PBa39xXp7lB6i1opIJq1vrMTn0ej9QAgBZOkC1R5nwEoBCNaMSt8_O28h9oKf_PsguZdsNRgLYi5eUkRMzTVjnDtUPX9sLEhz3hjk1_dSCzR22cU1wI_mBauj65MV8C0xS-ZeMo5DO1wKUTsZiv9w7e8KmJl3_lUN5BrGCX6GTC7Z3Bz8q7Q3O3-whyE-ydZk-gy190tSMvZyDWLE1ada9xteMDi1sAfohkhot03fVOT3h3fFAaTb1UXp-C2f0YaDYaF9iOEZU12Vi006IWy6lSeu0C6t-3WdBBo4mO0-_GmfR-6KW-Dxt7ZoAisenDSEapW1YggY_YMTW7PkzKnMcolekd5GCOUC9szM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ies This library requires the following dependencies:
requests
Pillow
License This project is licensed under the MIT License.
Authors noCaptchaAi ([email protected])