Skip to content

Instantly share code, notes, and snippets.

@alana314
Created February 23, 2021 01:37
Show Gist options
  • Save alana314/f36055e18f4602b460f0a7db3b5fb05a to your computer and use it in GitHub Desktop.
Save alana314/f36055e18f4602b460f0a7db3b5fb05a to your computer and use it in GitHub Desktop.
Export Apple Music Recently Added Songs to File
// First go to https://music.apple.com/library/recently-added and log in
// Scroll down the page to populate more items
// Open the developer console and paste this:
copy([...document.querySelectorAll('.line')].map((l, i) => {return {'song': l.innerText, 'artist' : [...document.querySelectorAll('.line2')]?.[i]?.innerText}}))
// This copies a JSON array of songs and artists to your clipboard, paste into a blank text document
@alana314
Copy link
Author

Script to copy your recently added apple music into a text file.

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