文件名称:yinyueyun-download
介绍说明--下载内容均来自于网络,请自行研究使用
下载百度音乐无损品质音乐.
使用百度音乐时,可以添加收藏,收藏后的音乐列表会保存在http://yinyueyun.baidu.com中,并且提供下载链接。用java简单写了个下载自己收藏音乐的程序,过程中发现对于VIP的无损音乐,下载链接已经给出来了,只是在前台做了限制,这个,这个。。。。(Bug已经报给百度音乐,这里的代码只为方便自己和代码分享)。
本来想用用户名和密码登陆百度账号,可是在登陆时需要传递一个参数callback,这个参数不是服务器发送过来的,怀疑是根据什么参数在本地计算出来的,看不太懂js,这个功能就没实现。
使用步骤如下:
代码jar包使用maven管理,需要去apache网站下载maven,然后在项目根路径mvn install
浏览器登陆百度账号,查看浏览器中的cookie,取出名称为BDUSS的cookie的值,把它复制到com.yeetrack.yinyueyun包下的HttpTool.java中的cookieValue中。
执行MusicDownload.java中的main方法,即可。
下载下来的音乐,保存在项目根路径下的music文件夹,默认下载音质最好的。-Download Baidu music lossless quality music .
Using Baidu music, you can add favorites , favorites list , after the music saved in http://yinyueyun.baidu.com , and the download link . Using java to write a simple download their favorite music program , found during the VIP lossless music, download link has been given out, but have been restricted in the foreground , this, this . . . . (Bug has been reported to Baidu music, here s the code only for the convenience of their own , and code-sharing ) .
Had wanted to use the user name and password Baidu account, but the landing is required to pass a parameter callback, this parameter is not sent from the server , suspected to be based on what parameters calculated locally , and I do not understand js, this function is no realization .
Use the following steps:
Code using maven jar package management, you need to download apache maven, and then in the project root path mvn install
Browser landing Baidu account, view the browser coo
使用百度音乐时,可以添加收藏,收藏后的音乐列表会保存在http://yinyueyun.baidu.com中,并且提供下载链接。用java简单写了个下载自己收藏音乐的程序,过程中发现对于VIP的无损音乐,下载链接已经给出来了,只是在前台做了限制,这个,这个。。。。(Bug已经报给百度音乐,这里的代码只为方便自己和代码分享)。
本来想用用户名和密码登陆百度账号,可是在登陆时需要传递一个参数callback,这个参数不是服务器发送过来的,怀疑是根据什么参数在本地计算出来的,看不太懂js,这个功能就没实现。
使用步骤如下:
代码jar包使用maven管理,需要去apache网站下载maven,然后在项目根路径mvn install
浏览器登陆百度账号,查看浏览器中的cookie,取出名称为BDUSS的cookie的值,把它复制到com.yeetrack.yinyueyun包下的HttpTool.java中的cookieValue中。
执行MusicDownload.java中的main方法,即可。
下载下来的音乐,保存在项目根路径下的music文件夹,默认下载音质最好的。-Download Baidu music lossless quality music .
Using Baidu music, you can add favorites , favorites list , after the music saved in http://yinyueyun.baidu.com , and the download link . Using java to write a simple download their favorite music program , found during the VIP lossless music, download link has been given out, but have been restricted in the foreground , this, this . . . . (Bug has been reported to Baidu music, here s the code only for the convenience of their own , and code-sharing ) .
Had wanted to use the user name and password Baidu account, but the landing is required to pass a parameter callback, this parameter is not sent from the server , suspected to be based on what parameters calculated locally , and I do not understand js, this function is no realization .
Use the following steps:
Code using maven jar package management, you need to download apache maven, and then in the project root path mvn install
Browser landing Baidu account, view the browser coo
(系统自动生成,下载前可以参看下载内容)
下载文件列表
yinyueyun-download
..................\.classpath
..................\.idea
..................\.....\.name
..................\.....\compiler.xml
..................\.....\copyright
..................\.....\.........\profiles_settings.xml
..................\.....\encodings.xml
..................\.....\gradle.xml
..................\.....\libraries
..................\.....\.........\Maven__com_alibaba_fastjson_1_1_37.xml
..................\.....\.........\Maven__commons_codec_commons_codec_1_6.xml
..................\.....\.........\Maven__commons_logging_commons_logging_1_1_3.xml
..................\.....\.........\Maven__org_apache_httpcomponents_httpclient_4_3_1.xml
..................\.....\.........\Maven__org_apache_httpcomponents_httpcore_4_3.xml
..................\.....\misc.xml
..................\.....\modules.xml
..................\.....\scopes
..................\.....\......\scope_settings.xml
..................\.....\uiDesigner.xml
..................\.....\vcs.xml
..................\.....\workspace.xml
..................\.project
..................\.settings
..................\.........\org.eclipse.core.resources.prefs
..................\.........\org.eclipse.jdt.core.prefs
..................\.........\org.eclipse.m2e.core.prefs
..................\music
..................\pom.xml
..................\src
..................\...\main
..................\...\....\java
..................\...\....\....\com
..................\...\....\....\...\yeetrack
..................\...\....\....\...\........\yinyueyun
..................\...\....\....\...\........\.........\DataEntity.java
..................\...\....\....\...\........\.........\HttpTool.java
..................\...\....\....\...\........\.........\MusicDownload.java
..................\...\....\....\...\........\.........\SongDataUtil.java
..................\...\....\....\...\........\.........\SongEntity.java
..................\...\....\....\...\........\.........\SongInfoEntity.java
..................\...\test
..................\yinyueyun-download.iml