Skip to main content

title: Sonimei

Sonimei

music downloader of sonimei.cn

full supported in python3.7, macosx

Todo

  • parse netease playlist and download all
  • add nosetests
  • maybe more other sites from sonimei

Sites supported

  • qq
  • 163(netease)
  • kugou

Capability

  • search of single song name/artist
  • multiple songs split by #
  • download and auto add ID3 tag:cover
  • pagination supported
  • scan directory and update ID3 tags
  • check local file before search
  • the search result: json/html raw file, auto cached, until you delete them
  • the search candidates cached in the app lifecycle
  • colorful ui :)

new features

  • auto cache downloaded album covers, until you manually delete them
  • if you are listening NeteaseMusic, with snm -a will auto get the song's name and try download it, no need to copy/search anymore
  • if the NeteaseMusic with High-Qulity 320Kbps, will prompt to download it directly, but you can always skip it.
  • if some song download failed, will store it, and with snm -fs you can re-download it again.

Install

cd <PATH>/Sonimei-Music
python setup.py install
# reinstall
pip/3 uninstall sonimei -y && python setup.py instal

sonime config/stored files/caches

config

config file: ~/.sonimei/sonimei.cfg

[log]
enabled = false
file_pth = /Users/lihe/.sonimei/sonimei.log
file_backups = 3
file_size = 5
level = 10
symbol = ☰☷☳☴☵☲☶☱

[pretty]
# install hacknerd font for full chars
symbols =  ,,,, ,,,,,,,,ﴖ,,,,,,,♪,

[snm]
save_dir = ~/Music/sonimei

songs

edit config:sonimei.cfg

caches

cached raw: ~/.crawler/music.sonimei.cn/raw

cached covers: ~/.crawler/music.sonimei.cn/media

cached netease raw: ~/.crawler/music.163.com

usage

if installed snm can be called from terminal

new feature

A. snm -a will get current playing neteasemusic song, and try download
B. snm -fs will found all download failed songs, and try re-download them.

auto-163-retry-failure

no params: snm

if no params supplied, will show -h hints

show help: snm -h/--help

help

search single song/artist

search_n_b

keys supported in search lifecycle

nN load next page

pP load previous page

bB go back one layer

1~10 the number, will download the song

s skip current song, if in scan mode

choose site: -s 163/kugou

but now, both not available I just use the sonimei site result, I don't use 163/kugou, I prefer qq, so I just leave it here.

from_netease

scan

will scan songs saved dir, and try to fix ID3 tags and cover

scan

Metadata

Release files for sonimei 0.1.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sonimei 0.1.8.1
File Size Uploaded Provenance Actions
sonimei-0.1.8.1.tar.gz 17.3 kB Without provenance Details for sonimei-0.1.8.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sonimei 0.1.8.1
File Interpreter ABI Platform Actions
sonimei-0.1.8.1-py3-none-any.whl Python 3 none any Details for sonimei-0.1.8.1-py3-none-any.whl

Total release size: 48.8 kB

Release files / sonimei-0.1.8.1.tar.gz

Download URL sonimei-0.1.8.1.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
28a938280403d94b2ade07eb0c9d8414727eab84b93b16707b6b2def74131e83
BLAKE2b-256 checksum
How to use checksums
4cd9e0a5c163079ae83a693f2e1dbd38c08a18dbc35c68fba3046dd61b65bfa1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release files / sonimei-0.1.8.1-py3-none-any.whl

Download URL sonimei-0.1.8.1-py3-none-any.whl
Size 31.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d619bd3cc0a9b1308ff5b76af7ff858101970b17f00bf9eb695beb1a8f3ac350
BLAKE2b-256 checksum
How to use checksums
d8c43a304164ea57b5deda7213cde1f576674590292f41fa57bd9372094bd5b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Security for sonimei 0.1.8.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page