Slyyxp / rsack

Ransack「rsack」is a lossless Korean music downloader
MIT License
85 stars 14 forks source link

Melon support #21

Open Slyyxp opened 2 years ago

Slyyxp commented 2 years ago

Look into https://www.melon.com/

Slyyxp commented 2 years ago

Authentication possible using the client_id of android app version 6.4.0 Must also be passed as app_key

    def auth(self):
        data = {
            "client_id": "5c2982b2ec377339ee67d3686f4813ac",
            "app_key": "5c2982b2ec377339ee67d3686f4813ac",
            "email": "MyEmail",
            "password": "MyPassword"}
        r = self.session.post(
            "https://auth.kakao.com/kakao_accounts/login.json", data=data
        )
        r.raise_for_status()
        return r.json()

Require FLAC subscription to investigate further.

Slyyxp commented 2 years ago

For anyone further interested in this topic you can check out the following gist as a starting point. https://gist.github.com/Slyyxp/b2a07a2756a5416bac4e9d03f85723ae

If having trouble finding endpoints try AppVer 6.4.1

dannykym commented 2 years ago

prestream/smartstream audio file itself is encrypted

Slyyxp commented 2 years ago

AES is used. There is apparently only one decryption key used globally for all files.

This is second-hand information and I do not have this key.