Skip to content

Project using the Python script to transfer your Newpipe subscriptions to Youtube account using youtube api

License

Notifications You must be signed in to change notification settings

deepanshumidha5140/Newpipe-To-Youtube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Subscriptions from NewPipe to YouTube

This Python project allows users to automate subscribing to YouTube channels via the YouTube Data API v3. It reads a list of channels from a JSON file and automatically subscribes to them using a Google Colab environment.

Features

  • Authenticate with the YouTube API using OAuth 2.0.
  • Read YouTube channel URLs from a subscriptions.json file.
  • Automatically subscribe to the listed channels.
  • Handles duplicate subscriptions and provides error handling.

Prerequisites

Before running the script, ensure you have:

Google Cloud Project:

  • Enable the YouTube Data API v3.
  • Create OAuth 2.0 credentials and download the client_secret.json file.

Google Colab Environment:

  • The code is designed to run in Google Colab.
  • You can upload the necessary files directly into the notebook.

Required Files:

  • client_secret.json: OAuth credentials from Google Cloud Console.
  • subscriptions.json: A file that contains the YouTube channel URLs you want to subscribe to.

Example format:

{
  "subscriptions": [
    {"url": "https://www.youtube.com/channel/CHANNEL_ID_1"},
    {"url": "https://www.youtube.com/channel/CHANNEL_ID_2"}
  ]
}

How to Use

  • Clone the Repository:
    First, clone the repository to your local machine:
    git clone https://github.com/deepanshumidha5140/Newpipe-To-Youtube
    cd youtube-subscription-manager
  • Google Cloud Setup:
    Go to Google Cloud Console.
    Enable YouTube Data API v3.
    Create OAuth credentials and download the client_secret.json file.
  • Run the Script in Google Colab: Open a Google Colab notebook.
    Upload the client_secret.json and subscriptions.json files when prompted.
  • Execute the Code: Run the provided code in Colab.
    You will be asked to authenticate using Google OAuth.

Demo

Demo.mp4

Youtube API Charts

Screenshot 2024-10-20 144701 Screenshot 2024-10-20 144729 Screenshot 2024-10-20 144818

About

Project using the Python script to transfer your Newpipe subscriptions to Youtube account using youtube api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published