Table of Contents
📝About
Coded a TikTok automation bot to:
- View videos
- Send Likes
- Gain Followers
I created this for my business Scorphx to take advantage of TikTok's "viral content" algorithm during the most viral time for my business (2022 World Cup): generate rapid engagement, promote the concept kits I was selling, and direct mass traffic to link-in-bio i.e. my online store.
💻How to Build
Selenium
library- controls a web browser and navigate to TikTok, where it allows user to select from a number of different modes that perform different actions.- Uses
pyfiglet
library to display banner message = visually appealing. strftime
function- formats into user-friendly readable elapsed time.
Steps
- Clone repo:
git clone https://github.com/vdutts7/scorphx-tiktok-automation-bot
cd scorphx-tiktok-automation-bot
- Install modules:
pip install -r scorphx-algo-reqs.txt
- Run the
.py
file:python the-scorphx-algo.py
Pros and Cons
*from POV of a non-coder looking for absolute convenience
Pros- Banner message = visually appealing.
- Includes functions to clear/title text in terminal = easy to read program output and see current status.
- Checks if current ChromeDriver version exists. If it doesn't, downloads it automatically.
- Several try and except blocks to catch exception i.e. minimize program crashes.
strftime
function --> formats into user-friendly readable elapsed time.
- Code uses
Selenium
to control a web browser, which can be unreliable and prone to breaking when websites change.- If TikTok makes any important updates, code may break.
- Code uses
chromedriver_autoinstaller
library to check if the current version of ChromeDriver exists and, if it doesn't, download it automatically. Potential compatibility issues. - Does not include error handling for invalid input i.e. if user enters a value that is not an integer when prompted to select a mode. This could result in the program crashing if the user enters invalid input.