- Go to https://www.youtube.com/feed/channels while logged into your Google account.
- Scroll to the bottom to ensure all subscriptions are fully loaded on the page.
- Press
Ctrl
+Shift
+j
to open the developer console. - Copy and paste the provided
script.js
code. - Right click on the generated text and select
Copy string contents
. - Paste the copied text into a new file, preferably ending with
.json
, for example,my-subscriptions.json
.
Last active
February 22, 2024 15:03
-
-
Save amitkrxyz/ebd202becdc8d33bd10aff480d665adf to your computer and use it in GitHub Desktop.
Export YouTube subscriptions from your browser console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const channelsElement = document.querySelectorAll('#main-link') | |
const channels = Array.from(channelsElement) | |
.map(c => { | |
//const name = c.querySelector("#text").textContent | |
//const handle = c.querySelector('#subscribers').textContent | |
const url = c.href | |
return url | |
} | |
) | |
JSON.stringify(channels, null, 2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment