Coder Social home page Coder Social logo

Comments (5)

0xHJK avatar 0xHJK commented on August 21, 2024

Which song do you want to download? Could you please tell me the keyword?
It would be better if there were detailed screenshots.

from music-dl.

y9c avatar y9c commented on August 21, 2024

@0xHJK

It seems that the error is not specific to any song. I tried several keywords and the same error occur.

 $ python main.py -k "red"
 [  0 ]      QQ | 0:03:43 -  3.41MB - Red - Taylor Swift - Red
 [  1 ]      QQ | 0:04:14 -  3.88MB - Walk Away - Dia Frampton - Red
 [  2 ]      QQ | 0:02:48 -  2.57MB - Red - 王嘉尔、ICE - Red
 [  3 ]      QQ | 0:03:41 -  3.38MB - Red (In the Style of Taylor Swift) - Ameritz Top Tracks - Red
 [  4 ]      QQ | 0:08:27 -  7.75MB - Red (DJ Vivona Remix) - Mephia、Bobby Starrr - Red
 [  5 ] NETEASE | 0:03:21 -  3.07MB - 빨개요 - 泫雅 - A Talk
请输入要下载的歌曲序号,多个序号用空格隔开:5
Traceback (most recent call last):
  File "main.py", line 111, in <module>
    main()
  File "main.py", line 100, in main
    downloadByIndexList(choices.split(),music_list)
  File "main.py", line 46, in downloadByIndexList
    addons.get(music['source']).download(music)
  File "/home/test/Tools/music-dl/core/extractors/netease.py", line 110, in netease_download
    music_download(music)
  File "/home/test/Tools/music-dl/core/common.py", line 23, in music_download
    wget.download(music['url'], out=outfile)
  File "/usr/lib/python3.7/site-packages/wget.py", line 526, in download
    (tmpfile, headers) = ulib.urlretrieve(binurl, tmpfile, callback)
  File "/usr/lib/python3.7/urllib/request.py", line 245, in urlretrieve
    url_type, path = splittype(url)
  File "/usr/lib/python3.7/urllib/parse.py", line 956, in splittype
    match = _typeprog.match(url)
TypeError: cannot use a string pattern on a bytes-like object

from music-dl.

0xHJK avatar 0xHJK commented on August 21, 2024

Sorry, this error did not occur on my computer.
Where are you from?I suspect that NetEase may have blocked the IP of your country or area.

$ python main.py -k red
 [  0 ]      QQ | 0:03:43 -  3.41MB - Red - Taylor Swift - Red
 [  1 ]      QQ | 0:04:14 -  3.88MB - Walk Away - Dia Frampton - Red
 [  2 ]      QQ | 0:02:48 -  2.57MB - Red - 王嘉尔、ICE - Red
 [  3 ]      QQ | 0:03:41 -  3.38MB - Red (In the Style of Taylor Swift) - Ameritz Top Tracks - Red
 [  4 ]      QQ | 0:08:27 -  7.75MB - Red (DJ Vivona Remix) - Mephia、Bobby Starrr - Red
 [  5 ] NETEASE | 0:02:48 -  2.57MB - Red - 王嘉尔、ICE - Red
 [  6 ] NETEASE | 0:03:21 -  3.07MB - 빨개요 - 泫雅 - A Talk
 [  7 ] NETEASE | 0:03:42 -  3.39MB - Red - T. Swift、Rina Johnson - Tribute to Taylor Swift
 [  8 ]   KUGOU | 0:02:48 -  2.57MB - Red - 王嘉尔、ICE - Red
 [  9 ]   KUGOU | 0:03:55 -  3.59MB - Red (Live) - Taylor Swift -
 [ 10 ]   KUGOU | 0:03:43 -  3.41MB - Red - Taylor Swift - Red (Deluxe Version)
 [ 11 ]   KUGOU | 0:03:19 -  3.05MB - 빨개요 (红) - 泫雅 - A Talk
 [ 12 ]   KUGOU | 0:03:49 -   3.5MB - Red (Instrumental With Background Vocals) - Taylor Swift -
 [ 13 ]   BAIDU | 0:02:24 -   2.2MB - Red - Eva O - Red
 [ 14 ]   BAIDU | 0:03:27 -  3.16MB - Red - Rafi Sanu, Kavita Krishnamurthy - Red
 [ 15 ]   BAIDU | 0:07:19 -  6.71MB - Red - Nadjiwan - Brother
 [ 16 ]   BAIDU | 0:02:27 -  2.26MB - Red - Federico Ferrandina - Federico Ferrandina-What We Are
 [ 17 ]   BAIDU | 0:03:12 -  2.94MB - Red - 스크류그래프트(ScrewGraft) - TotalMentalectomy
请输入要下载的歌曲序号,多个序号用空格隔开:6
100% [......................................................] 3218423 / 3218423
已保存到:/Users/hjk/workspace/music-dl/泫雅 - 빨개요.mp3

from music-dl.

0xHJK avatar 0xHJK commented on August 21, 2024

Could you access this url
http://music.163.com/song/media/outer/url?id=28850659

from music-dl.

y9c avatar y9c commented on August 21, 2024

Oops... 404

Seems my IP address is blocked by netease.

from music-dl.

Related Issues (20)

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.