Automatically Edits Videos and Uploads to Tiktok with 1 line of code.

Overview

TiktokAutoUploader - Open to code contributions

Automatically Edits Videos and Uploads to Tiktok with 1 line of code.


Setup

pip install -r requirements.txt

Have you installed ImageMagick on your system,

https://imagemagick.org/script/download.php

Then in site-packages, go to moviepy and edit config_defualts.py

image

Change this auto to your path like shown in image above.


Parameters

method uploadVideo(video_dir, videoText, startTime=0, endTime=0, private=True, test=True)

By defualt test=True meaning it will not upload and only stay preview for user to click upload.

Switching to test=False, it will upload.


Notes

Please use chromedriver.exe provided as its source code has been edited to avoid bot detection on tiktok website.

Use only tiktok accounts that can be accessed through email password on browser, OAuth2.0 may not work, slightly probable.

Do not spam upload videos as tiktok will most likely ban you after this or during the act.

I am not responsible/ liable for any damages or problems or resulting effects you face using this tool or in relation with this tool, use at own risk.


Basic Usage Example

if name == "main":

# Example Usage

tiktok_bot = Main("VideosDirPath")

# Use a video from your directory.

tiktok_bot.uploadVideo("test1.mp4", "This is text \n overlay on \n the video", 1, 45)

# Or use youtube url as video source. [Simpsons Meme 1:16 - 1:32 Example]

tiktok_bot.uploadVideo("https://www.youtube.com/watch?v=OGEouryaQ3g", "TextOverlay", startTime=76, endTime=92, private=False)

Image Overlay Feature

image image


Example Video

https://user-images.githubusercontent.com/52138450/111905871-d07a8900-8a45-11eb-8da7-531793703809.mp4

Comments
  • Setup Errors

    Setup Errors

    Hi, good work, I just get this below error:

    .This error can be due to the fact that ImageMagick is not installed on your computer, or (for Windows users) that you didn't specify the path to the ImageMagick binary in file conf.py, or that the path you specified is incorrect

    opened by h4ck1th4rd 12
  • Thanks for your share of this TiktokAutoUploader

    Thanks for your share of this TiktokAutoUploader

    Firstly, Thank you very much for your share of this TiktokAutoUploader.

    Could you update the function(TIKTOK multi-account management and batch automatic upload) of this application like the following videos?

    https://www.youtube.com/watch?v=-5h89yOwGqM

    Waiting for your update and Appreciate for your work and share!

    Best Wishes for you

    opened by sinoshon 4
  • #launching error

    #launching error

    Exception has occurred: ImportError cannot import name 'Mapping' from 'collections' (C:\Python310\lib\collections_init_.py) File "C:\Users\ADMIN\Desktop\python scripts\TiktokAutoUploader-master\Browser.py", line 1, in import undetected_chromedriver.v2 as uc

    opened by thanhtuvietnam 2
  • make it deployable on heroku & direct link as input

    make it deployable on heroku & direct link as input

    Hi Michael , please make it deployable on heroku free dyno for work autopilot & fully free. also heroku have wide range of buildpacks like imagemagick , chrome headless , ffmpeg , .. & using set workers in Procfile , u can autorun important cmds after awake dyno from daily sleep. waiting for your changes commits :) finest regards goodbye

    opened by claimclone 2
  • How can I skip video editing(MoviePy and ImageMagick)

    How can I skip video editing(MoviePy and ImageMagick)

    Hello, all I need is only taking the video.mp4 file and uploading it to TikTok without modifiyng it with MoviePy and ImageMagick, do you know how I can skip/remove the video editing please? Because I tried and it broke the code so pretty hard for me to understand as im newbie in py thanks

    opened by Tawny75 2
  • Chromedriver.exe not executable on linux

    Chromedriver.exe not executable on linux

    This is an amazing library.

    You mentioned you custom compiled the chromedriver exe - could you make a seperate build for linux?

    Trying to use this on linux but getting EXEC error (not due to permissions) because it seems to not be built for linux.

    If you don't have the time, I'd be happy to do it if you can instruct on what needs to be done :D

    opened by roxworks 1
  • This version of ChromeDriver only supports Chrome version 89

    This version of ChromeDriver only supports Chrome version 89

    Hello, I tried to run this but I got the error from selenium

    selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 89 Current browser version is 91.0.4472.101

    Since in the readme you said to use the chromedriver that you provided, can you please update it or explain which changes have you done?

    opened by franzqat 1
  • cant know how to use this perferct application

    cant know how to use this perferct application

    I have installed "pip install -r requirements.txt" successfully, but when I run "python main.py", the error mention is following:

    PS E:\TT\TiktokAutoUploader-master> python main.py Traceback (most recent call last): File "main.py", line 1, in from Upload import Upload File "E:\TT\TiktokAutoUploader-master\Upload.py", line 3, in from pytube import YouTube ModuleNotFoundError: No module named 'pytube' PS E:\TT\TiktokAutoUploader-master>

    And I don't know how to set the schedule upload time, could you make the short video to explain how to use this wonderful application?

    Thanks and Have a nice day!

    Regards, Steven

    opened by stevenwong21 1
  • "Too many attempts. Try again later"

    Hi!

    So, i run the code just like in your example, and at first it's doing alright, but then it open Chrome, retrieves the Log In page, and when i type in my login credentials and hit Enter, the site displays this message:

    image

    And i can not Log In manually, or through the bot (when he asks what cookie file to use for Log In) Is there something wrong with the setup? And why can it happen?

    opened by Another-Man 0
  • No idea how to use

    No idea how to use

    The v1 files are out of date (why not remove all of that code, delete the v2 folder and have v2 be the "default" project?) When running v2, I run into countless errors, such as AttributeError: 'Chrome' object has no attribute 'WebDriverWait' I don't know where to begin with this, no clue what's working and what's supposed to be working.

    opened by Zenahr 0
  • Adding emojis to the hashtags.txt?

    Adding emojis to the hashtags.txt?

    f = open("hashtags.txt", "w", encoding="utf-8") f.write("#funny 🚗 \r U+1F60A") f.close()

    No matter what I try to do I can't make it post emojis when uploading?

    opened by MoltoDev 2
  • Script went crash after cookie chose.

    Script went crash after cookie chose.

    Using usage code repo.

    Please select an integer representing a cookie::1
    Couldn't find hashtag input element. Please update code in WebBot.py: getCaptionElem()
    Traceback (most recent call last):
      File "C:\Users\Administrator\Desktop\TiktokAutoUploader\v2\main.py", line 6, in <module>
        tiktokbot.uploadVideo("https://www.youtube.com/watch?v=31HfP81oWDI", "Testing with v2")
      File "C:\Users\Administrator\Desktop\TiktokAutoUploader\v2\tiktok_uploader\TiktokBot.py", line 45, in uploadVideo
        self.task_manager.uploadVideo(video_path, videoText)
      File "C:\Users\Administrator\Desktop\TiktokAutoUploader\v2\tiktok_uploader\TaskManager.py", line 17, in uploadVideo
        task.uploadVideo()
      File "C:\Users\Administrator\Desktop\TiktokAutoUploader\v2\tiktok_uploader\Uploader.py", line 18, in uploadVideo
        self.addHashTags()
      File "C:\Users\Administrator\Desktop\TiktokAutoUploader\v2\tiktok_uploader\Uploader.py", line 32, in addHashTags
        caption_elem.send_keys(hashtag)
    AttributeError: 'NoneType' object has no attribute 'send_keys'
    
    opened by Kenhuey 0
Owner
Michael Peres
Python is endless.
Michael Peres
A tiktok autoclaimer/sniper used to get og/rare usernames on tiktok.com

TikTok Autoclaimer A tiktok autoclaimer/sniper used to get og/rare usernames on tiktok.com Report Bug · Request Feature Features Asynchronous User fri

dropout 24 Dec 8, 2022
Tiktok-bot - A Simple Tiktok bot With Python

Install the requirements pip install selenium pip install pyfiglet==0.7.5 How ca

Muchlis Faroqi 5 Aug 23, 2022
Tiktok-bot - A tiktok bot with python

Install the requirements pip install selenium pip install pyfiglet==0.7.5 How ca

Ukis 5 Aug 23, 2022
Moon-TikTok-Checker - A TikTok Username checking tool that probably 3/4 people use to get rare usernames

Moon Checker (educational Purposes Only) What Is Moon Checker? This is a TikTok

glide 4 Nov 30, 2022
Automatically gets clips from twitch streams and uploads them to a YouTube channel.

Twitch Stream Highlights to YT Automatic Uploader (AutoBot Clipper) This script can be used to automatically extract highlights (or clips) from a twit

Teja Swaroop 57 Dec 12, 2022
Easy and simple, Telegram Bot to Show alert when some edits a message in Group

Edit-Message-Alert Just a simple bot to show alert when someone edits a message sent by them, Just 17 Lines of Code These codes are for those who incu

Nuhman Pk 6 Dec 15, 2021
⬇️ Telegram Bot to download TikTok videos without watermark in a snap with Inline mode support.

⬇️ Tokmate - Telegram Bot to download TikTok videos ⛲ Features Superfast and supports all type of TikTok links Download any TikTok videos without mate

Hemanta Pokharel 35 Jan 5, 2023
An API that allows you to get full information about TikTok videos

TikTok-API An API that allows you to get full information about TikTok videos without using any third party sources and only the TikTok API. ##API onl

FC 13 Dec 20, 2021
This is Instagram reposter that repost TikTok videos.

from-tiktok-to-instagram-reposter This script reposts videos from Tik Tok to your Instagram account. You must enter the username and password and slee

Mohammed 19 Dec 1, 2022
Discord Bot for server hosts, devs, and admins. Analyzes timings reports & uploads text files to hastebin. Developed by https://birdflop.com.

"Botflop" Click here to invite Botflop to your server. Current abilities Analyze timings reports Paste a timings report to review an in-depth descript

Purpur 76 Dec 31, 2022
Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live strams, YouTube videos and telegram media.

Telegram VCVideoPlayBot An Telegram Bot By @ZauteKm To Stream Videos in Telegram Voice Chat. NOTE: Make sure you have started a VoiceChat in your Grou

Zaute 20 Oct 21, 2022
Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live strams, YouTube videos and telegram media.

Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live strams, YouTube videos and telegram media.

SUBIN 449 Dec 27, 2022
📢 Video Chat Stream Telegram Bot. Can ⏳ Stream Live Videos, Radios, YouTube Videos & Telegram Video Files On Your Video Chat Of Channels & Groups !

Telegram Video Chat Bot (Beta) ?? Video Chat Stream Telegram Bot ?? Can Stream Live Videos, Radios, YouTube Videos & Telegram Video Files On Your Vide

brut✘⁶⁹ // ユスフ 15 Dec 24, 2022
TikTok 4L and 4C checker that doesn't count banned usernames as available

TikTok 4L and 4C checker that doesn't count banned usernames as available. Once a username is available, it will send it to your Discord Webhook.

cliphd 26 May 1, 2022
A tiktok mass account creator with undetected selenium and email verification, to bot an account

⚠️ STILL UNDER DEVELOPEMENT - v1.1-beta ⚠️ Adding PROXY ROTATION Adding EMAIL VERIFICATION Adding USERNAME COMPILER Tiktok Mass Bot Creator v1.1-beta

xtekky 11 Aug 1, 2022
Automate TikTok follower bot, like bot, share bot, view bot and more using selenium

Zefoy TikTok Automator Automate TikTok follower bot, like bot, share bot, view bot and more using selenium. Click here to report bugs. Usage Download

null 555 Dec 30, 2022
An Unofficial TikTok API Wrapper In Python

This is an unofficial api wrapper for TikTok.com in python. With this api you are able to call most trending and fetch specific user information as well as much more.

David Teather 2.9k Jan 8, 2023
Fastest Tiktok Username checker on site.

Tiktok Username Checker Fastest Tiktok Username checker on site

sql 3 Jun 19, 2021