This library for solving TikTok captcha via OCA captcha service
Project description
TikTok Captcha Solver
This project automates the login process on TikTok using Selenium or Playwright. It also includes functionality to handle captchas using the ocacaptcha library.
Features
- Automated login to TikTok
- Handling of cookies banner
- Automatic filling of login credentials
- Solving captchas using
oca_solve_captchafunction fromocacaptchalibrary
Prerequisites
- Python >= 3.13.1
- ChromeDriver
- Playwright
- Nodriver
- A valid API key for
ocacaptcha
Installation
If you are using Selenium
- Clone the repository:
git clone https://github.com/OneClickAction/TikTok Captcha Solver (login with Selenium).git cd TikTok Captcha Solver (login with Selenium)
- Install the required Python packages:
pip install selenium ocacaptcha
- Download and install ChromeDriver compatible with your version of Chrome, and place it in your desired directory.
If you are using Playwright
- Clone the repository:
git clone https://github.com/OneClickAction/TikTok Captcha Solver (login with Playwright).git cd TikTok Captcha Solver (login with Playwright)
- Install the required Python packages:
pip install playwright ocacaptcha
Usage
If you are using Selenium
- Update the script with your own login credentials and API key:
my_email = "your_email@example.com" my_password = "your_password" user_api_key = "your_ocacaptcha_api_key" - Update the ChromeDriver path:
service = Service(executable_path='/path/to/your/chromedriver')
If you are using Playwright
- Update the script with your own login credentials and API key:
my_email = "your_email@example.com" my_password = "your_password" user_api_key = "your_ocacaptcha_api_key"
Obtaining OCA API key
To get an API key, follow the steps below in the Telegram bot:
- Open the bot and send the
/startcommand. - Select the English or Russian language.
- Go to the Another services or Другие услуги menu.
- Select Captcha or Капча and get your API key.
- Copy your API key from the bot and paste it into the code. Make sure you have enough solutions in your account
Dependencies
- Selenium
- Playwright
- Nodriver
- ocacaptcha
Contact
For any questions or issues, please contact:
- OCA admin
- Email: oneclickactionsoft@gmail.com (for business purposes only, spam will be ignored)
- GitHub: One Click Action
- Telegram One Click Action
- Discord One Click Action
- YouTube One Click Action
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ocacaptcha-0.2.54.tar.gz.
File metadata
- Download URL: ocacaptcha-0.2.54.tar.gz
- Upload date:
- Size: 24.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
140f5fb6e97aefad3f852bc271a1c1d1e15961f7797dcd8449babd1efb693a8c
|
|
| MD5 |
5f0261e4fe7e2d5914f685f0a14c8bec
|
|
| BLAKE2b-256 |
efa1e0e4294ef70c19709afef012dd4045d0b0bfcbca2aa1b466754629ca4735
|
File details
Details for the file ocacaptcha-0.2.54-py3-none-any.whl.
File metadata
- Download URL: ocacaptcha-0.2.54-py3-none-any.whl
- Upload date:
- Size: 26.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad7f11d2e0b7a9c9169e3d208b0626bf4aaef0933466ef1f2cae868ee730d0f9
|
|
| MD5 |
77ee0e5b8c5cc0aff0d74fab01301857
|
|
| BLAKE2b-256 |
26f03405ab0dfe8d3292dadd2111880aa42ce90c8e5a17fe1eaf0ecd08f3dfc1
|