Skip to content

A simple python program that convert all the .cvs to .kgl files

Notifications You must be signed in to change notification settings

bjason/Convert-.CSV-to-.kgl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Convert-.CSV-to-.kgl

A simple program to convert .csv files to .kgl files on one click.

Note: Before you run it, make sure to edit the directory variable to the directory where your .csv files locate.

It can be used to copy your Spotify playlists to NetEase Music. The name of the lists will be the file name.

Steps are listed as follow:

  1. enter this page to export all your playlists on Spotify as .csv files.
  2. change the directory variable value in csvToKgl.py.
  3. run it and get all .kgl files.
  4. go to this page to upload your .kgl files one by one.

Note: If your playlist too long or has too many songs that not exist in 163 library, it won't work sometimes.

如何将spotify歌单导入网易云音乐?(已失效)

关于这一点,虽然网上已经有不少方法,但是大多还需要自己手动更改不少东西,总体来说十分麻烦。但原理一般都是利用网易提供的导入酷狗歌单(.KGL)文件进行导入,依葫芦画瓢,写了个很小的程序,具体的操作如下:

步骤
  1. 进入这个页面,以.csv格式导出你需要导入到网易云音乐的歌单。
  2. 这里下载csvToKgl.py文件,请确保电脑上已经正确安装Python。随后,将文件中的directory变量改为你存放.csv的目录。
  3. 运行csvToKgl.py,得到所有的.kgl文件。
  4. 进入导入酷狗歌单页面依次上传.kgl文件。
优点
  • 可以同时转换多个歌单
可能遇到的问题
  • 当歌单中存在过多网易未收录的歌曲,可能会导致上传失败。

如何将网易云音乐歌单导入spotify?

网上似乎没有太多关于这个需求的解决方法啊,我找到的唯一一个是利用网易提供的 API 得到歌单列表的JSON文件,再使用 workflow + IFTTT 曲线救国的方法,不仅不直观,而且要在手机上多次下载软件、多次授权之后才能进行操作,我跟着原文的方式尝试了一遍之后,依然没有在spotify中看到导入的歌单……所以被逼无奈才又写了几行代码实现的。

步骤
  1. 得到歌单ID:从浏览器进入到你的歌单,复制地址栏中"music.163.com/#/playlist?id="后面的数字。
  2. 进入到这个页面下载t.py文件,请确保电脑上已经正确安装Python。随后,将文件中的playlistId变量改为你刚刚获得的歌单ID。
  3. 运行t.py得到一个.txt文件。
  4. 打开 这个网站并粘贴.txt中的全部内容,等待其自动识别并创建歌单。
优点
可能遇到的问题
  • 网易云API只返回歌单中最多1000首歌曲的信息。
  • 由于版权原因,部分歌曲spotify不能添加。

About

A simple python program that convert all the .cvs to .kgl files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages