This library for solving TikTok captcha via OCA captcha service


License
MIT
Install
pip install ocacaptcha==0.2.8

Documentation

TikTok Captcha Solver

This project automates the login process on TikTok using Selenium WebDriver. 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.11
  • ChromeDriver
  • A valid API key for ocacaptcha

Installation

  1. Clone the repository:
    git clone https://github.com/OneClickAction/TikTok-Captcha-Solver.git
    cd TikTok-Captcha-Solver
    
  2. Install the required Python packages:
    pip install selenium ocacaptcha requests
    
  3. Download and install ChromeDriver compatible with your version of Chrome, and place it in your desired directory.

Usage

  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')
    
    
  3. Update the ChromeDriver path:
    python tiktok_automation.py
    
    

Dependencies

  • Selenium
  • ocacaptcha
  • Requests

Contact

For any questions or issues, please contact: