youtube-copy

command module
v0.0.0-...-91932eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2025 License: MIT Imports: 9 Imported by: 0

README

This is a quick hack that uses the Youtube Data API to create playlists and subscriptions from Google Takeout for Youtube. The oAuth stuff and parts of calling the API is straight from Youtube's tutorial and code samples for using their APIs.

I wrote this to transfer my playlists and subscription from one Google account to another.

Prequisite

To use this, you must first enable the Youtube Data API for your Google account including downloading the credential file for oAuth. Save the credential file as cs.json.

Using Google Takeout, download your playlist and subscriptions in JSON format.

Installing

go get lazyhacker.dev/youtube-copy

Disclaimer

I wrote this specifically for my need to copy some data over so there's no support. Use it at your own risk, but feel free to look at the code.

Documentation

Overview

youtube-copy reads JSON files from Google Takeout for Youtube playlists and subscriptions and using the Youtube Data APIs adds them to your Youtube account. It can be use to copy info from one account to another or as a way to restore a backup.

Directories

Path Synopsis
internal
yt
Package yt is a wrapper around the Youtube Data API for creating new playlists, add videos to a playlist and subscribing to channels.
Package yt is a wrapper around the Youtube Data API for creating new playlists, add videos to a playlist and subscribing to channels.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL