Skip to content

Loser02/youtube_subscription_transfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

YouTube Data Transfer

This script allows you to transfer your YouTube subscriptions.

Prerequisites

To use this script, you need to have Python installed on your system, along with the following packages:

  • google-auth
  • google-auth-oauthlib
  • google-auth-httplib2
  • google-api-python-client

You can install the required packages using pip: pip install google-auth google-auth-oauthlib google-auth-httplib2 google-api-python-client

YOU NEED THE .JSON FILE TO RUN THIS AND ADD TEST USERS SO API ISNT BLOCKED SO PLEASE DO THAT BY=

  1. MAKE THE client_secrets.json FILE: STEP 1=Go to the https://console.cloud.google.com/ STEP 2=Sign in with your Google account if you haven't already. STEP 3=Click the "Select a project" dropdown at the top, then click "New Project" in the top-right corner of the dialog (dont need to edit name or organization) and click create.

image

STEP 4=In the left-hand menu, navigate to "APIs & Services" > "Library."

image

image

STEP 7:In the search bar, type "YouTube Data API v3" and select it from the results.

image

STEP 8=Click "Enable" to enable the YouTube Data API v3 for your project. that will take you to this screen=

image

STEP 9=After the API is enabled, click "Create Credentials" in the top-right corner.

image

STEP 10=In the "Add credentials to your project" page, select "YouTube Data API v3" for "Which API are you using?" and check user data and click next.

image

STEP 11=fill in any app name and your email address=

image

STEP 12=click add or remove scopes and type https://www.googleapis.com/auth/youtube.force-ssl into search bar. check it and then update and then save and countinue.

image

STEP 13=select desktop app and click create

image

STEP 14=download and save the file as client_secrets.json in the same directory as the python script.

image

  1. ADDING ACCOUNTS TO TESTERS: STEP 1=Go to the https://console.cloud.google.com/ STEP 2=In the left-hand menu, navigate to "APIs & Services" > "OAuth consent screen." image STEP 3=Scroll down to the "Test users" section. Click "Add Users" to add test users. Enter the email addresses of the Google accounts you'd like to grant access to your app. These should be the email addresses of the source and target accounts you want to transfer data between. Click "SAVE" to save the test users. image

Usage

  1. Open a terminal or command prompt and navigate to the directory containing the transfer_youtube_data.py script and the client_secrets.json file.

  2. Run the script: python transfer_youtube_data.py

  3. The script will prompt you to authorize access to your Google accounts. First, authorize the source account (the account you want to transfer data from) and then the target account (the account you want to transfer data to).

  4. The script will transfer your YouTube subscriptions and playlists. Watch history cannot be transferred due to API limitations.

  5. Once the transfer is complete, the script will display a confirmation message.

(dont forget to copy the python script)

Note

Please keep your client_secrets.json file private and secure. It contains sensitive information about your Google API project, and sharing it could expose your project to unauthorized access or potential abuse.

also the script might say it has finished transferring but if it didnt transfer all of them then that means you have reached the daily quota and have to do it again in 24 hours

About

move YouTube subscriptions between accounts

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages