- 在电脑上打开 Charles(或类似应用)
- 确保 SSL 代理启用并且正常工作
- 在 Apple Music 中随便选取一首歌增加到你的音乐库中
- 在 Charles 中找到
https://ld-5.itunes.apple.com/WebObjects/MZDaap.woa/daap/databases/1/cloud-add
的请求,拷贝X-Dsid
,Cookie
,X-Guid
和User-Agent
这四个请求标头
更改add_songs
中的相应headers
python playlist2csv.py [playlist_id]
假设播放列表的链接为
http://music.163.com/#/m/playlist?id=12345678
则playlist_id
为12345678
The script I'm using to retrieve the Apple Music identifier for a Spotify song is quite basic. It simply compares the title and artist to find out if a Spotify and Apple Music song match. Some songs don't have the exact same title (extraneous spacing for example) in both services. This results in the script failing to retrieve an identifier for some songs.