DavidOB1 / tiktok-meme-bot

A bot that automatically finds memes, edits them into videos, and posts them on TikTok
GNU General Public License v3.0
23 stars 7 forks source link

About the Project

I've seen a lot of people making bots that can create Reddit videos for TikTok, so I decided to expand on that idea and make a program that can make TikTok meme videos and automatically post them. Memes are collected from either Reddit, Instagram, or YouTube, and then they are put on top of a randomly sliced video from the footage folder, and given a sound randomly picked from the sounds folder. After that, the video is saved as "output.mp4" and the video will be uploaded to TikTok.

How to Use

Ensure the following before running the program:

Once that is all complete, you can run the project by running the tiktok_bot.py file.

When running the program for the first time, make sure you sign into TikTok. Afterward, your Google Chrome data will be stored in the selenium_data folder, so you won't have to log back in again. Note that this is done because TIkTok has bot protection and will not let you automatically log into your account.

Sample Video Output

https://user-images.githubusercontent.com/62823414/173204330-70dc1480-792f-41f3-96ef-05957e725c6d.mp4

Issues with the Project

One of the main issues I found with this is that TikTok does not let you upload videos from PC that use others' audio. This means that each TikTok that is uploaded has to use original sound, which hurts its growth in the algorithm. Another major issue is that it is very possible that it will upload a video with the same meme. Even though it keeps track of posts it's already seen, it is very common on platforms like Instagram for one meme to be reposted on many different accounts, and there isn't an easy solution to check whether the same image contents are being uplaoded or not.

Modularity

If you wish to use separate parts of this project rather than just running the main TikTok bot, here are ways to do so: