Skip to content

Instantly share code, notes, and snippets.

@Arcitec
Created January 7, 2022 04:07
Show Gist options
  • Save Arcitec/989f514b8bc6d08ca0165c25898c02e0 to your computer and use it in GitHub Desktop.
Save Arcitec/989f514b8bc6d08ca0165c25898c02e0 to your computer and use it in GitHub Desktop.
YouTube Studio: Export titles and links for all your videos.
// 1. Go to https://studio.youtube.com/
// 2. Go to the "Content" (Channel content) page, which is the list of all your videos.
// 3. Run this in the browser's Javascript console.
// 4. Just copy the console text (contains all of the currently visible videos).
let lines = []; document.querySelectorAll("ytcp-video-section-content a#thumbnail-anchor").forEach((lbl) => { lines.push(lbl.getAttribute("aria-label")); let href = lbl.href.match(/video\/(.+?)\/edit$/); href = href ? "https://www.youtube.com/watch?v=" + href[1] : "Failed to retrieve link."; lines.push(href + "\n"); }); console.log(lines.join("\n"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment