Giter Site home page Giter Site logo

casperkristiansson / twitch-youtube-auto-uploader Goto Github PK

View Code? Open in Web Editor NEW
25.0 2.0 4.0 27.66 MB

Upload the top twitch clips to youtube automatically

License: GNU General Public License v3.0

Python 100.00%
twitch twitch-api twitch-bot twitchtv twitchbot twitch-api-v5 youtube youtube-downloader youtube-api-v3 youtube-video

twitch-youtube-auto-uploader's Introduction

Automatically Upload Twitch Clips to YouTube

This repository enables you to automatically upload Twitch clips from various categories directly to YouTube. To ensure a smooth setup and execution, it's highly recommended to read through all the instructions carefully before implementing this program on your device.

Step 1: Create a Twitch Developer Account and Fetch Videos, Data

  1. Sign up for a Twitch Developer account at Twitch Developer Portal https://dev.twitch.tv/.
  2. In the console tab, create a new application. Set a custom name for your application and use "http://localhost" as the redirect URL (OAuth). Choose 'Website Integration' as the category.
  3. Upon creating your application, a credential file will be generated. Copy the Client ID from this file and paste it into the twitch_credentials.py file in our repository.
  4. Decide on the categories of Twitch clips you want to fetch. Remember, YouTube has a limit of uploading 6 videos per day, so set the maximum number of videos to 6. Refer to the Twitch API documentation for more details https://dev.twitch.tv/docs/api/reference/.

Here is an example:

https://api.twitch.tv/kraken/clips/top?game=League%20of%20Legends&period=day&trending=false&limit=6&language=en

Step 2: Set Up Google Credentials

  1. Visit Google Cloud Console (https://console.cloud.google.com/) and log in with your Google account.
  2. Create a new project via the upper left corner menu.
  3. Navigate to 'APIs & Services' > 'Credentials', then create a new credential as an “OAuth client ID” with the application type set to “Desktop app”.
  4. Download the credential data as a JSON file, which will be used in the setup process.

Step 3: Completing Google's Audit Process

Google requires an audit for remote video uploads for security reasons. This process can be time-consuming:

  1. Thoroughly review Google's terms of service and API revision history.
  2. Submit your application for an audit at YouTube API Audit Form https://support.google.com/youtube/contact/yt_api_form.
  3. Be prepared for potential follow-up requests via email. It might take multiple communications before your application is approved.

Twitch Developer Console

Step 4: Installation Requirements

Ensure you have the following:

  1. The latest version of Python installed on your device.
  2. Run the command pip install -r requirements.txt in your terminal to install the necessary dependencies.

Additional Resources

Troubleshooting Links

Disclaimer

When using this tool to upload videos to YouTube, ensure that you comply with both Twitch's and YouTube's guidelines. Use this tool at your own risk.

twitch-youtube-auto-uploader's People

Contributors

casperkristiansson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

twitch-youtube-auto-uploader's Issues

Hi

Hello, how can I get your program to work? Do you have any instructions? Thank you.

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.