Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rahulbansal16/49b80a949de1719224952774a1bd9d9a to your computer and use it in GitHub Desktop.
Save rahulbansal16/49b80a949de1719224952774a1bd9d9a to your computer and use it in GitHub Desktop.
Fetching Transcript From the Spotify
const elements = document.querySelectorAll("div.wYBEXo9heVZe_zkteOJ6.QER3MDmhErzCc5bKcklD");
const texts = Array.from(elements).map(element => element.textContent);
console.log(texts);
@rahulbansal16
Copy link
Author

Paste the above script in the spotify console.
Press ctrl + shift + i in windows for accessing the console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment