Skip to main content

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_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:
    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:
    pip install selenium ocacaptcha
    
  3. Download and install ChromeDriver compatible with your version of Chrome, and place it in your desired directory.

If you are using Playwright

  1. Clone the repository:
    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:
    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:

  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:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ocacaptcha-0.2.54.tar.gz (24.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ocacaptcha-0.2.54-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

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

Hashes for ocacaptcha-0.2.54.tar.gz
Algorithm Hash digest
SHA256 140f5fb6e97aefad3f852bc271a1c1d1e15961f7797dcd8449babd1efb693a8c
MD5 5f0261e4fe7e2d5914f685f0a14c8bec
BLAKE2b-256 efa1e0e4294ef70c19709afef012dd4045d0b0bfcbca2aa1b466754629ca4735

See more details on using hashes here.

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

Hashes for ocacaptcha-0.2.54-py3-none-any.whl
Algorithm Hash digest
SHA256 ad7f11d2e0b7a9c9169e3d208b0626bf4aaef0933466ef1f2cae868ee730d0f9
MD5 77ee0e5b8c5cc0aff0d74fab01301857
BLAKE2b-256 26f03405ab0dfe8d3292dadd2111880aa42ce90c8e5a17fe1eaf0ecd08f3dfc1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page