A Python script to bulk subscribe to YouTube channels using the YouTube Data API v3 based on your NewPipe subscriptions.
- Bulk subscribe to channels from NewPipe subscriptions JSON file
- Handles existing subscriptions (skips duplicates)
- Python 3.6+
- Google API project with YouTube Data API v3 enabled
client_secrets.json
from Google Cloud Console
-
Enable YouTube Data API
- Create a project at Google Cloud Console
- Enable "YouTube Data API v3"
- Create OAuth 2.0 credentials (Desktop app type)
- Download credentials as
client_secrets.json
-
Install dependencies
pip install google-auth google-auth-oauthlib google-auth-httplib2 google-api-python-client
-
Clone repo or just download
newpipe-to-youtube.py
-
Export subscriptions from NewPipe -
subscriptions.json
-
Place
newpipe-to-youtube.py
,client_secrets.json
andsubscriptions.json
in the same folder -
Run the script
python newpipe-to-youtube.py
-
Authenticate when prompted:
- Browser will open for Google sign-in
- Grant "Manage YouTube subscriptions" permission