ocacaptcha 0.2.54
This library for solving TikTok captcha via OCA captcha service
Requires Python: >=3.13.1
Keywords: tiktok, captcha, puzzle, slide, 3d, two the same shapes, 2 objects, rotate, whirl, circle, automation, python, selenium, playwright, nodriver, tiktok captcha, icon, tiktok slide, tiktok whirl, tiktok 3d, tiktok icon, geetest, geetest icon, datadome, slider, audio

# 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_captcha` function from `ocacaptcha` library

## Prerequisites

- Python >= 3.13.1
- ChromeDriver
- Playwright
- Nodriver
- A valid API key for `ocacaptcha`

## Installation

**If you are using Selenium**
1. Clone the repository:
	 ```bash
	 git clone https://github.com/OneClickAction/TikTok Captcha Solver (login with Selenium).git
	 cd TikTok Captcha Solver (login with Selenium)
	 
2. Install the required Python packages:
	 ```bash
	 pip install selenium ocacaptcha
	 
3. Download and install [ChromeDriver](https://googlechromelabs.github.io/chrome-for-testing/#stable) compatible with your version of Chrome, and place it in your desired directory.

**If you are using Playwright**
1. Clone the repository:
	 ```bash
	 git clone https://github.com/OneClickAction/TikTok Captcha Solver (login with Playwright).git
	 cd TikTok Captcha Solver (login with Playwright)
	 
2. Install the required Python packages:
	 ```bash
	 pip install playwright ocacaptcha
	 

## Usage

**If you are using Selenium**
1. 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"

2. Update the ChromeDriver path:
	 ```
	 service = Service(executable_path='/path/to/your/chromedriver')

	
**If you are using Playwright**
1. 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](https://t.me/OneClickActionBot):

1. Open the bot and send the `/start` command.  
2. Select the **English** or **Russian** language.  
3. Go to the **Another services** or **Другие услуги** menu.  
4. Select **Captcha** or **Капча** and get your API key.
5. 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](https://github.com/OneClickAction)
- Telegram [One Click Action](https://t.me/+70DIlIc543U4NGQy)
- Discord [One Click Action](https://discord.com/invite/YyDx3SJNCh)
- YouTube [One Click Action](https://www.youtube.com/@ocasoft)