This package integrates with Selenium to solve any TikTok captcha in one line of code.
Project description
TikTok Captcha Solver API
This project is the SadCaptcha TikTok Captcha Solver API client. The purpose is to make integrating SadCaptcha into your selenium app as simple as one line of code.
Requirements
- Python >= 3.10
- Selenium properly installed and in
PATH
Installation
This project can be installed with pip
. Just run the following command:
pip install tiktok-captcha-solver
Selenium client
Import the package, set up the SadCaptcha class, and call it whenever you need. This turns the entire captcha detection, solution, retry, and verification process into a single line of code. It is the recommended method if you are using Selenium.
from tiktok_captcha_solver import SadCaptcha
import undetected_chromedriver as uc
driver = uc.Chrome(headless=False)
api_key = "YOUR_API_KEY_HERE"
sadcaptcha = SadCaptcha(driver, api_key)
# Selenium code that causes a TikTok captcha...
sadcaptcha.solve_captcha_if_present()
That's it!
API Client
If you are not using Selenium, you can still import and use the API client to help you make calls to SadCaptcha
from tiktok_captcha_solver import ApiClient
api_key = "YOUR_API_KEY_HERE"
client = ApiClient(api_key)
# Rotate
res = client.rotate("base64 encoded outer", "base64 encoded inner")
# Puzzle
res = client.puzzle("base64 encoded puzzle", "base64 encoded piece")
# Shapes
res = client.shapes("base64 encoded shapes image")
Contact
- Homepage: https://www.sadcaptcha.com/
- Email: info@toughdata.net
- Telegram @toughdata
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for tiktok_captcha_solver-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34203c24034f57a6d3f72557ec057152da3a50c80ccc8bb339e7f7facab74d80 |
|
MD5 | 415a90eefab11497871e2c61f3b77036 |
|
BLAKE2b-256 | 926390bcc2973b377e9b2c41965e648e9df9ab809acc161cc9c2ba0d39409b81 |
Hashes for tiktok_captcha_solver-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f378a2fb3794a93f997fb13df1bcfa5b2f5174bf80af7f708a3ee20d12b72906 |
|
MD5 | e472ba2ff97f6b9d73516c1990ef4f3f |
|
BLAKE2b-256 | 0590418910b694b9cce34e3fa6e256fe13174510b463686a8bc0387c6370e52b |