Giter Club home page Giter Club logo

deezer-export's Introduction

Deezer Export

You can use this JavaScript snippet to export a playlist on Deezer to a CSV file, e.g. to import it later into another player/service or just to make a backup.

How to use it

  1. Open Deezer website in your browser
  2. Click on a playlist to view its songs
  3. Open Developer Console: Go to Menu -> More Tools -> Developer Tools
  4. Paste the contents of deezer-export.js into the console and hit Enter to execute the script
  5. Give it a few seconds

When the script is finished running, you will be asked to download a .csv file with song info - titles, albums, artists.

deezer-export's People

Contributors

georgedimac avatar zeex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

deezer-export's Issues

French encoding

Hello
First of all, you're script works well and saved me many times.

In Excel, French Character such as é, à .... are displayed incorrectly.

There's multiple ways to force encoding in Excel
But even I thought it's better to do it directly from the export-script :)

Here's an improvement that I made :

element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));
element.setAttribute('href', 'data:text/plain;charset=utf-8,%EF%BB%BF' + encodeURIComponent(text));

Source : imal hasaranga perera
Thanks :)

Missing items

Brave is up to date
Version 1.52.129 Chromium: 114.0.5735.198 (Official Build) (64-bit)](https://brave.com/latest/)

Hi Zeex

Firstly, thank you kindly for taking the time to write this code. Just a small piece of feedback because actually I think I've solved this problem to a degree that I can accept, but the feedback may be worth updating front page to recommend using Chrome, unless you wish to investigate.

Using Deezer I did two pulls over two days, of seven playlists and got the following results:
Real Number - Pull 1 - Pull 2
Playlist 1: 912 - 877 - 889
Playlist 2: 1829 - 1715 - 1827
Playlist 3: 216 - 215 -194
Playlist 4: 739 - 695 - 719
Playlist 5: 90 - 84 - 71
Playlist 6: 714 - 698 - 694
Playlist 7: 735 - 699 - 714
(Actually did multiple pulls day 1 and all failed but only saved one set of the data)

I decided to download vanilla Chrome Version 114.0.5735.199 (Official Build) (64-bit) as part and retested before sending this message, and had one failed download:

Playlist 3: 216 - 202

Second attempt was successful.

Loop doesn't seem to end or find any songs

Thanks for developing this script! I tried to use it on both Firefox and Chrome, and the scrolling is working nicely but the script doesn't recognize when the scrolling ends so it doesn't download any file :-( Even after I see the scrolling reached the last line and nothing changes, the script doesn't recognize this and continues to scroll and print the "Scrolling..." message thousands of more times, with no end.

I tried to debug the problem myself, without much success :-( If I try to print songs.length I get 0 all the time - also doesn't look correct. Maybe deezer changed their page layout after you developed this script?

Invalid CSV - Space after separator

Hello, I had issue using the CSV generated by the script in another application and noticed it was related to the space after each separator (,).

As now
Title,Album,Artist
"atitle", "analbum", "anartist1, anartist2, anartistn"

Should be
Title,Album,Artist
"atitle","analbum","anartist1, anartist2, anartistn"

].join(', ');

Fix quotes in songs

            var csvEntry = [
                '"' + song.title.replaceAll("\"", "'") + '"',
                '"' + song.album.replaceAll("\"", "'") + '"', 
                '"' + song.artist.replaceAll("\"", "'") + '"'
            ].join(',');

This will fix quote escaping issues when parsing the CSV.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.