This project provides a fully automated workflow to download TikTok videos, extract metadata, and upload the content directly to YouTube Shorts. It simplifies cross-platform content sharing for creators and aims to minimize manual effort. Perfect for individuals and organizations managing multi-platform content distribution.
- Automated TikTok Downloads: Retrieve videos and metadata from TikTok.
- YouTube Shorts Uploads: Post videos with customizable titles, descriptions, and tags.
- User-Friendly Configuration: Easy setup and authentication process.
- Metadata Extraction: Automatically extract captions and links from TikTok videos.
- Error Handling: Built-in mechanisms for retrying failed uploads.
- Install Python 3.8 or newer.
- Install Node.js and npm (for TikTok scraper).
- Set up Google Cloud Console for YouTube Data API v3.
-
Clone this repository:
git clone https://github.com/your-org/tiktok-to-youtube-automation.git cd tiktok-to-youtube-automation
-
Install Python dependencies:
pip install -r requirements.txt
-
Install TikTok scraper:
npm install -g tiktok-scraper
-
Configure YouTube API credentials:
- Create a project on Google Cloud Console.
- Enable the YouTube Data API v3.
- Download
client_secrets.json
and place it in theresources/
directory.
-
Set Configuration:
- Open
main.py
and replaceTIKTOK_USERNAME
with the desired TikTok username. - Ensure the
client_secrets.json
file is correctly placed.
- Open
-
Run the Script:
python main.py
-
Authenticate:
- Follow the OAuth flow in your browser to authenticate with YouTube.
- Once authenticated, the script will start downloading TikTok videos and uploading them to YouTube Shorts.
.
├── .gitignore
├── LICENSE
├── README.md
├── requirements.txt
├── main.py
├── resources/
│ ├── client_secrets.json
│ └── examples/
│ ├── metadata_example.json
│ └── video_example.mp4
We welcome contributions from the community! To contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name
- Commit your changes:
git commit -m "Add your feature description"
- Push to your branch:
git push origin feature/your-feature-name
- Open a pull request on GitHub.
This project is licensed under the MIT License.
For questions, support, or feedback, open an issue on GitHub or email the maintainers.
- Multiple Account Support: Allow downloading and uploading from multiple TikTok accounts.
- Video Editing Options: Add trimming, watermarking, and resizing features.
- CLI Configuration: Implement an interactive command-line tool for configuration.
- Automated Scheduling: Enable regular updates for new TikTok content.
- Cloud Deployment Guide: Provide instructions for deploying the script to AWS or Google Cloud.