/youtube-copy

Reads from Google's Youtube Takeout files for playlists and subscriptions and copies them to a Youtube account. Can be used for copying playlists and subs from one account to another or restoring a backup.

Primary LanguageGo

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.