Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stean202020/youtube-utils
https://github.com/stean202020/youtube-utils
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/stean202020/youtube-utils
- Owner: stean202020
- Created: 2024-08-13T19:39:38.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-14T20:23:39.000Z (5 months ago)
- Last Synced: 2024-11-12T06:13:28.110Z (about 2 months ago)
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# Python Script for Retrieving YouTube Subscriptions
This Python script retrieves a list of the authenticated user's YouTube subscriptions and optionally saves them to a JSON file.## Features:
Connects to the YouTube Data API v3.
Retrieves a list of the user's subscriptions with basic information (channel ID and title).
Handles potential errors during the API call.
Provides functions to save retrieved subscriptions to a JSON file and extract channel IDs from a saved JSON file.
Configurable via a JSON file (credentials and other options).## Requirements:
Python 3
Google API Client libraries (google-api-python-client)## Usage:
Install the required libraries: pip install google-api-python-client
Configure a JSON file named config.json with your OAuth 2.0 credentials (refer to Google API documentation for details).
Run the script: python channel-manager.py## Optional:
Modify the main function to process the retrieved subscriptions data (dictionary format).
## Note:
Replace the placeholder for accessing credentials from the config file with the actual key in your implementation.
This script provides a basic framework for managing YouTube subscriptions programmatically. You can extend it further to perform additional tasks based on your needs.