Uses TikTok API, Youtube API, MoviePy, Pillow, and Torch to create a channel that runs in the background.
-
Download the Github Repository
-
If needed download and install python and pip
-
Install libraries with
pip install -r requirements.txt
-
Get setup and create a Project with the Youtube API: https://developers.google.com/youtube/v3/quickstart/python Be sure to follow it carefully, as it won't work if you don't do this part right.
-
Define the needed variables in the config.py file for your video settings and what tag or category to scrape for TikToks.
-
Go to TikTok and copy paste the cookie from your browser.
-
In config.py edit the variables for your needs.
-
Run
python main.py
in your computer terminal (terminal or cmd). You have to sign in to your Youtube Account through the link the script will give you. It's going to ask you: "Please visit this URL to authorize this application:..." so you copy that link, paste it in your browser, and then sign into your Google account. Then paste the authentication code you get back into your terminal. -
Enjoy your fully automated youtube channel! :) Note that for uploading public videos, you have to complete an audit for the Youtube API. See the note in the Google Documentation. Without this, you can only post private videos, but they approve everyone. Have fun!