Export YouTube Subscriptions¶
Google Takeout¶
The export will be provided as a CSV (comma separated values) file that will contain the following types of data.
- Channel ID
- Channel URL
- Channel Title
Instructions¶
- Login to Google via Google Takeout using a web browser.
- Click on "All data included", then on "Deselect all", then select only "subscriptions" and click "OK".
- Click on "Next step" and then on "Create export".
- Click on the "Download" button after it appears, this may take some time.
-
Extract the file "subscriptions.csv" from the downloaded archive (e.g. takeout-20220524T222420Z-001.zip, takeout-20220524T222420Z-001.tar.gz).
The "subscriptions.csv" within the archive is located under "/YouTube and YouTube music/subscriptions/subscriptions.csv".
-
Open "subscriptions.csv" in the desired application (e.g. LibreOffice Calc).
Manual (JavaScript)¶
Thanks to Clément 5629 for posting this type of solution. I've altered the output to be in CSV.
The export will be provided via the JavaScript console as a text message/object enclosed within double quotes. Within the double quotes the data is formatted as a CSV (comma separated values) and contains the following types of data.
- Channel URL
- Channel Title
I wish I could have figured out a way to also include the channel ID for each channel. Unfortunately as far as I can tell the web page does not contain the channel IDs.
Instructions¶
- Login to YouTube.com/feed/channels using a desktop web browser.
- Scroll down to the end of the page until all subscriptions are loaded.
- Open Web Developer Tools console by pressing, CTRL+SHIFT+K (Firefox) or CTRL+SHIFT+I (Chrome/Chromium).
- Copy the bellow JavaScript code to the clipboard.
$$("#main-link.channel-link").reduce((str, el)=>str+'\n'+el.href+','+el.querySelector("#main-link #text").innerText,'Channel URL,Channel title');
- Paste the copied JavaScript code into the input field at the bottom of the screen.
- Right mouse click on the outputted results and click on "Copy Object" or "Copy Message".
- Paste your subscriptions into a desired text editor.
- Remove the enclosed double quotes from the first line and last line.
- Save as "subscriptions.csv".
Note
If using macOS use the Command key in place of the CTRL key.
Example of Data Output¶
Google Takeout¶
Channel ID,Channel URL,Channel title
UCg6gPGh8HU2U01vaFCAsvmQ,http://www.youtube.com/channel/UCg6gPGh8HU2U01vaFCAsvmQ,Chris Titus Tech
UCVls1GmFKf6WlTraIb_IaJg,http://www.youtube.com/channel/UCVls1GmFKf6WlTraIb_IaJg,DistroTube
UCLx053rWZxCiYWsBETgdKrQ,http://www.youtube.com/channel/UCLx053rWZxCiYWsBETgdKrQ,LGR
Manual (JavaScript)¶
"Channel URL,Channel title
https://www.youtube.com/c/ChrisTitusTech,Chris Titus Tech
https://www.youtube.com/channel/UCVls1GmFKf6WlTraIb_IaJg,DistroTube
https://www.youtube.com/lazygamereviews,LGR
https://www.youtube.com/channel/UCUQo7nzH1sXVpzL92VesANw,DIY Perks"
With double quotes removed.
Channel URL,Channel title
https://www.youtube.com/c/ChrisTitusTech,Chris Titus Tech
https://www.youtube.com/channel/UCVls1GmFKf6WlTraIb_IaJg,DistroTube
https://www.youtube.com/lazygamereviews,LGR
https://www.youtube.com/channel/UCUQo7nzH1sXVpzL92VesANw,DIY Perks