https://github.com/38/libnemusic
The library interface for NetEase Music Client
https://github.com/38/libnemusic
Last synced: 11 months ago
JSON representation
The library interface for NetEase Music Client
- Host: GitHub
- URL: https://github.com/38/libnemusic
- Owner: 38
- Created: 2015-11-27T19:40:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-02T00:35:36.000Z (over 10 years ago)
- Last Synced: 2025-03-18T16:53:43.409Z (over 1 year ago)
- Language: Python
- Size: 57.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# libnemusic
==
Example
$ python
Python 2.7.3 (default, Jun 22 2015, 19:33:41)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import server
>>> import libnemusic
>>> import player
>>> album = libnemusic.api.search_album(keyword = "范特西").get_albums().next()
>>> songs = album.get_songs()
>>> pl = player.playlist.Playlist()
>>> for s in songs: pl.append(s.name, s.artists[0].name, s.lMusic.playTime, "http://localhost:8000" + s.lMusic.getpath())
...
>>> service = server.Service(file("/tmp/nemusic.log", "w", 0))
>>> pl.play()