• Stars
    star
    420
  • Rank 103,194 (Top 3 %)
  • Language
    JavaScript
  • License
    GNU General Publi...
  • Created over 3 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Automatically Edits Videos and Uploads to Tiktok with CLI, Requests not Selenium.

TiktokAutoUploader v1.3

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

LinkedIn HitCount Forks Stars


Setup

pip install -r requirements.txt

pip install git+https://github.com/pytube/pytube

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=False)

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

Switching to test=True, it will allow you to preview.


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.

Webdriver selected classes that are most likely not going to change in a while, looking for alternatives.

If you have any issues or errors with pytube, please use pip install git+https://github.com/pytube/pytube instead of pip install pytube3, as that is usually slow to update from githup repo.


Basic Usage Example

if name == "main":

# Example Usage

tiktok_bot = TiktokBot()

# Use a video from your directory.

tiktok_bot.upload.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.upload.directUpload("test.mp4", private=True, test=True)

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

Image Overlay Feature

image

positioning


Example Video

demo.mp4

Issues Fixed

Previously the code had a lot of problems with many things when reviewing again:

-> Files were read and being overwritten at same time, leading to corrupt and sometimes frozen video outputs.

-> Sometimes when extracting youtube videos, there may not be audio available and so will continue regardless.

-> The video dimensions never fit the tiktok recommended dims and so was obscured when uploaded.

-> The layout for captions on the video and overall format of the video was not nice to look at.

-> Cropping videos did not work properly most of the time.

All these issues have now been fixed.


Updated Fixes and new features


-> Now you can add multiple tiktok accounts, simple to use prompts.

-> You can now choose not to add a caption to the video without errors.


Current Problems:
-> Design and layout of classes was not thought out as well and so left it very messy and not structured well.

TODO:
-> Allow users to add schedule video uploads using CSV file.

-> Improve structuring of code and design better one.

-> Maybe add a GUI?

-> Allow direct uploading of videos.


More Repositories

1

socialScanner

Will Search Various Platforms to Confirm An Email Exists.
Python
8
star
2

mcdonaldsVoucherCodeGenerator

From the code on McDonalds UK reciept will autocomplete customer experience survey and output the the voucher code used for discounted food... saves time.
Python
2
star
3

MakiMessenger

An messenger that allows users to communicate to each other in a local network setting.
Python
2
star
4

ServerLessEnergyLiveDataGraph

Use of AWS CloudFront, API Gateway, S3 Bucket, Lambda, DynamoDB, EventBridge and APIs to power a live energy graph showing live prices from within the energy market, which runs completely on the cloud (End to End). Guidance provided by EDF energy company.
JavaScript
1
star
5

MakiNN

Nueral Networks Research and Development
Python
1
star
6

cityAM-dataGatherer

Will download financial news from CityAM sources and analyise for companies worth looking for...
Python
1
star
7

PyEuclidean

Implementation of Euclidean Algorithm in Python
Python
1
star
8

LSFR-Crypto-Maki

# LSFR Simulation with 4 bits. # Stream Cipher Random Bit Generation.
Python
1
star
9

3DES-Crypto-Maki

Implementation of 3DES in Python
Python
1
star
10

trainLondonRouteFinder

Will find a appropriate route given a start and destination train station on London Tube Map...
Python
1
star
11

StockerAnalysis

Will show data analysis derived from financial sheets, given a companies ticker.
Python
1
star
12

tubeStatus-

Python TFL Tube Service API
Python
1
star
13

LondonInteractiveMap

Shows all London Boroughs in an interactive HTML page.
HTML
1
star
14

whatsappTextAnalyizer

This python script will be able to take whastapp chats and analyise different things.
Python
1
star
15

Proxy5Server

Allows users to run a Proxy5 server on thier own local computer, implemented using sockets.
Python
1
star
16

FlockingAlgorithm

This is my own attempt at the flocking algorithm using class objects and Pygame.
Python
1
star