Coder Social home page Coder Social logo

zodix25 / tiktok-meme-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from davidob1/tiktok-meme-bot

0.0 0.0 0.0 6.45 MB

A bot that automatically finds memes, edits them into videos, and posts them on TikTok

License: GNU General Public License v3.0

Python 100.00%

tiktok-meme-bot's Introduction

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:

  • A .env file exists with the values from .env.template filled out.

  • There is at least one mp4 video in the footage folder that is longer than any of the audios, and the resolution is 1080x1920.

  • There is at least one mp3 audio in the sounds folder which is of reasonable length (usually between 5-60 seconds).

  • All required libraries have been installed

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

sample.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:

  • MemeMachine can be imported into any project and can be used for many different purposes, such as personal meme viewing/collecting.

  • VideoGenerator can be used on its own to generate videos which can then be manually uploaded to TikTok. This can be a good work-around for the aforementioned problem of uploading TikToks on PC, as you can use this to generate the videos and then upload them on a mobile device, allowing you to use a different audio.

  • The TikTok bot itself can be used to post other content aside from generate memes. All you need to do is give a different input to the upload_meme method, and different content can be uploaded. For instance, you could use a bot to generate Reddit videos, then pass in the path of the Reddit videos to the upload_meme method to upload the videos automatically.

tiktok-meme-bot's People

Contributors

davidob1 avatar zodix25 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.