将 网易云音乐 同步到 QQ音乐

感谢 @denonw 写出这么好的的 脚本

platform requirement support
Windows beautifulsoup4 python 2.7
macOS requests -
Linux selenium -
1. 安装 pip

通过 easy_install 安装
easy_install pip

通过脚本安装
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py

2. 安装 beautifulsoup4、requests、selenium

pip install beautifulsoup4
pip install requests
pip install selenium

3. 下载 phantomjs 并解压

D:/Downloads/phantomjs-2.1.1-windows/bin/phantomjs (Windows)

/Users/用户/Downloads/phantomjs-2.1.1-macosx/bin/phantomjs (macOS or Linux)

4. 配置

settings.py

phantomjs_driver_path = "phantomjs 解压路径"
chrome_driver_path = ""
headers = {
"User-Agent": 'Mozilla/5.0 (Linux; U; Android 2.3.6; en-us; Nexus S Build/GRK39F) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.'
}
search_url = "https://y.qq.com/portal/search.html#page=1&searchid=1&remoteplace=txt.yqq.top&t=song&w={}"
qq_playlist_url = 'https://y.qq.com/portal/profile.html#sub=other&tab=create&'`

config.json

{
"qq_account": "qq号码",
"qq_password": "qq密码",
"wy_playlist_url": "网易云音乐歌单链接",
"qq_playlist_name": "qq音乐歌单名称"`
}

5. 运行

python WYtoQQ.py

你可能感兴趣的:(将 网易云音乐 同步到 QQ音乐)