This tiny program enables you to download your favorite 163 music playlists. To achieve this goal, following the steps as follow:
- Get the id of your 163 playlist. To get it, you should open the page of the playlist in a browser then copy the numbers behind "music.163.com/#/playlist?id=" in address bar.
- Download the python script to your computer and make sure you have Python installed.
- Run the script by double clicking it. Be careful that you need to run the script whose name is matched with your local Python version. Alternative method is recommended.
- Open the .txt file right next to the scirpt and select all then copy. Then open this site and it will convert the playlist for you. Note: the API 163 provided have the limit of reading 1000 songs in your playlist.
程序旨在帮助你爬取到,网易云上你喜欢的歌单的所有的歌曲信息。 步骤如下:
- 在浏览器打开你的网易云歌单,复制你的歌单网址中,位于 "music.163.com/#/playlist?id=" 后方的数字。
- 下载本脚本,并且确保本地机器已安装Python
- 双击脚本,运行脚本。你只需要运行和你的本地Python版本一样的脚本即可。
- 歌单保存到本地的.txt文件中。 注意:网易云音乐歌单只允许加载1000首歌曲。
update:官方已经关闭了导入酷狗歌单的通道。
网上似乎没有太多关于这个需求的解决方法啊,我找到的唯一一个是利用网易提供的 API 得到歌单列表的JSON文件,再使用 workflow + IFTTT 曲线救国的方法,不仅不直观,而且要在手机上多次下载软件、多次授权之后才能进行操作,我跟着原文的方式尝试了一遍之后,依然没有在spotify中看到导入的歌单……所以被逼无奈才又写了几行代码实现的。(可能是滞后的原因,第二天早上看到了添加的歌单)
由于网易云提供的API不定期犯抽,于是利用dongyonghui写的API完成了新的方法,点击这里查看该API的说明。
- 得到歌单ID:从浏览器进入到你的歌单,复制地址栏中"music.163.com/#/playlist?id="后面的数字。
- 进入到这个页面下载相应的Python文件,请确保电脑上已经正确安装Python。如果电脑上安装了Python2,请下载AlternativeMethodForPy2.py,Python3则下载AlternativeMethodForPy3.py。如果想尝试之前的方法,请下载Python2.py或Python3.py。
- 运行文件并输入你刚刚获得的歌单ID,看到成功提示后在相同目录下可以看到一个以歌单ID命名的.txt文件。
- 打开这个网站并粘贴.txt中的全部内容,等待其自动识别并创建歌单。
- 相比小众软件的方法简单、成功率高
- 网易云API只返回歌单中最多1000首歌曲的信息。
- 由于版权原因,部分歌曲spotify不能添加。