Coder Social home page Coder Social logo

xiyoumc / ncmbot Goto Github PK

View Code? Open in Web Editor NEW
233.0 14.0 46.0 277 KB

NeteaseCloudMusic Bot for Philharmonic™. ✨🍰✨ 网易云音乐 Python 组件库,用 Python 玩转网易云音乐

Home Page: http://xiyoumc.0x2048.com/ncmbot

License: ISC License

Python 100.00%
python netease-cloud-music pypi-packages

ncmbot's Issues

被封IP了怎么办

网上的免费代理IP要么用不了要么就是IP高频您是怎么解决这个问题的呢只是测试的情况就会出现IP高频了

网易云音乐这招狠强大

基于目前的测试,程序在mac上能正常运行。一旦放到树莓派上就不行了,偶尔能运行出来,但是速度也很慢,要么就直接卡死。
看了下源码发先端倪,网易云音乐要求将参数加密,且加密过程需要一个乘方运算。程序就是卡死在这个乘方运算上。详细代码见 ncmbot/util/encrypt.py , rsaEncrypt 方法 如下:
rs = int(text.encode('hex'), 16) ** int(pubKey, 16) % int(modulus, 16)
int(text.encode('hex'), 16) 该表达式计算出的结果长度随机,可能多/少一位:
134756759250514201348959048594219950947
66976556623959294182729630237432492849
这个数字与int(pubKey, 16) 表达式进行乘方运算,直接将树莓派这种渣渣秒杀(卡死)

给大佬跪了,学习了。。不过我自有解决方法😆

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.