Code Monkey home page Code Monkey logo

neteasemusicdownload's Introduction

NeteaseMusicDownload(重写中)

一个用于批量下载网易云音乐歌单中歌曲的py脚本

依赖网易云音乐API


运行

git clone https://github.com/thggdx/NeteaseMusicDownload.git
cd NeteaseMusicDownload
pip install -r requirements.txt
python ./main.py

功能/特性

  • 手机号验证码登录
  • 手机号密码登录
  • 扫码登陆
  • 从浏览器获取cookie
  • 登录后Cookie保存(记住登录状态)
  • 多线程批量下载歌单中歌曲
  • 歌曲标签设置(歌曲封面,名称,作者,专辑)
  • 歌词下载(独立文件\歌曲内嵌)

requirements

qrcode
requests
mutagen
rich
browser_cookie3

脚本功能还在完善,欢迎各位大佬指出错误和pr

neteasemusicdownload's People

Contributors

thggdx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

jiezaizone

neteasemusicdownload's Issues

登陆后错误

[2023-08-30 10:12:59,834][INFO] : 当前工作路径: C:\Users\31046\Desktop\NeteaseMusicDownload-main
[2023-08-30 10:13:02,141][INFO] : API地址: https://ncm-api.thggdx.eu.org
[2023-08-30 10:13:03,924][INFO] : 未登录
[2023-08-30 10:13:14,539][INFO] : 登陆方式: 手机验证码登陆
[2023-08-30 10:13:25,727][ERROR] : An error occurred: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "C:\Users\31046\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\31046\AppData\Local\Programs\Python\Python311\Lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\31046\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\31046\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\31046\Desktop\NeteaseMusicDownload-main\main.py", line 206, in
main()
File "C:\Users\31046\Desktop\NeteaseMusicDownload-main\main.py", line 116, in main
data=API.captchaLogin(phone,captcha,ctcode,api)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\31046\Desktop\NeteaseMusicDownload-main\API.py", line 123, in captchaLogin
data=requests.post(url,data=data).json()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\31046\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
[2023-08-30 10:13:25,730][ERROR] : 程序异常退出

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.