Disclaimer: Automating interaction on TikTok violates Section 2.5 of their Terms of Service. Using these scripts can result in permanent shadowbanning, restriction from liking, or account deletion. Proceed at your own risk.
Open TikTok in a desktop browser, right-click the Like button, and select Inspect .
Last Updated: October 2025. Note that specific GitHub repository names have been omitted because they break within hours of publication. Search the current trending tiktok-api tags on GitHub for the live fixes. auto like tiktok github fix
Avoid using specific, generated class names (e.g., .tiktok-12abc3-DivLikeButton ). Instead, update your selectors to target stable attributes, text values, or SVG pathways.
Implement a wait-for-selector loop inside a scroll function. Open TikTok in a desktop browser, right-click the
from playwright.sync_api import sync_playwright import random, time
Use localStorage or userDataDir to save your session cookies. Search the current trending tiktok-api tags on GitHub
Simple macro that includes random intervals to look "human". simonfarah/tiktok-bot CLI-based Bot
: Navigate to your project folder and force-update your Python environment using the pip package manager:
If your script triggers a visual slider or puzzle captcha, integrate an API-based solver (like 2Captcha or Anti-Captcha) into the script logic, or configure the script to pause and await manual human completion before proceeding. 4. Resolve Rate Limits and Shadowbans