Skip to content

Instantly share code, notes, and snippets.

@jjanusch
jjanusch / google-music-exporter.js
Last active September 14, 2020 17:19
A script to scrape song data from Google Music. Inspired/based on this script from jimiserez https://gist.github.com/jmiserez/c9a9a0f41e867e5ebb75
/*
To run:
1. Go to playlist in Google Music such as https://play.google.com/music/listen#/all
2. Open the Developer Tools and paste the script below in
3. Run "GoogleMusicExporter.scrape()"
4. Once the script completes, songs can be viewed by:
1. Running "GoogleMusicExporter.songs", which will show the Javascript object
2. Running "GoogleMusicExporter.export('csv')" which will export all of the songs as a CSV to your clipboard
3. Running "GoogleMusicExporter.export('json')" which will export all of the songs as JSON to your clipboard