{"id":19084333,"url":"https://github.com/coghost/sonimei-music","last_synced_at":"2025-06-16T04:11:26.008Z","repository":{"id":57469313,"uuid":"159105906","full_name":"coghost/Sonimei-Music","owner":"coghost","description":"download music and auto add Id3 info (title album artist cover)","archived":false,"fork":false,"pushed_at":"2021-02-19T02:11:49.000Z","size":2382,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-30T19:57:33.498Z","etag":null,"topics":["auto","cover","downloader","id3","music","netease","qq"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coghost.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-26T03:40:06.000Z","updated_at":"2021-02-19T02:11:52.000Z","dependencies_parsed_at":"2022-09-19T10:11:06.334Z","dependency_job_id":null,"html_url":"https://github.com/coghost/Sonimei-Music","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coghost/Sonimei-Music","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coghost%2FSonimei-Music","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coghost%2FSonimei-Music/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coghost%2FSonimei-Music/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coghost%2FSonimei-Music/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coghost","download_url":"https://codeload.github.com/coghost/Sonimei-Music/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coghost%2FSonimei-Music/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260093724,"owners_count":22957726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auto","cover","downloader","id3","music","netease","qq"],"created_at":"2024-11-09T02:50:56.752Z","updated_at":"2025-06-16T04:11:25.982Z","avatar_url":"https://github.com/coghost.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\ntitle: Sonimei\n---\n\n## Sonimei\n\nmusic downloader of [sonimei.cn](http://music.sonimei.cn/)\n\n\u003e full supported in python3.7, macosx\n\n### Todo\n\n- [ ] ~~parse netease playlist and download all~~\n- [ ] add nosetests\n- [ ] maybe more other sites from sonimei\n\n### Sites supported\n\n- [x] qq\n- [x] 163(netease)\n- [x] kugou\n\n### Capability\n\n- [x] search of single song name/artist\n- [x] multiple songs `split by #`\n- [x] download and auto add ID3 tag:`cover`\n- [x] pagination supported\n- [x] scan directory and update ID3 tags\n- [x] check local file before search\n- [x] the search result: json/html raw file, auto cached, until you delete them\n- [x] the search candidates cached in the app lifecycle\n- [x] colorful ui :)\n\n#### new features\n\n- [x] auto cache downloaded album covers, until you manually delete them\n- [x] 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\n- [x] if the NeteaseMusic with High-Qulity `320Kbps`, will prompt to download it directly, but you can always skip it.\n- [x] if some song download failed, will store it, and with `snm -fs` you can re-download it again.\n\n### Install\n\n```bash\ncd \u003cPATH\u003e/Sonimei-Music\npython setup.py install\n# reinstall\npip/3 uninstall sonimei -y \u0026\u0026 python setup.py instal\n```\n\n### sonime config/stored files/caches\n\n#### config\n\nconfig file: `~/.sonimei/sonimei.cfg`\n\n```python\n[log]\nenabled = false\nfile_pth = /Users/lihe/.sonimei/sonimei.log\nfile_backups = 3\nfile_size = 5\nlevel = 10\nsymbol = ☰☷☳☴☵☲☶☱\n\n[pretty]\n# install hacknerd font for full chars\nsymbols =  ,,,, ,,,,,,,,ﴖ,,,,,,,♪,\n\n[snm]\nsave_dir = ~/Music/sonimei\n```\n\n#### songs\n\nedit config:`sonimei.cfg`\n\n#### caches\n\ncached raw: `~/.crawler/music.sonimei.cn/raw` \n\ncached covers: `~/.crawler/music.sonimei.cn/media`\n\ncached netease raw: `~/.crawler/music.163.com`\n\n### usage\n\nif installed `snm` can be called from terminal\n\n#### new feature\n\n##### A. `snm -a` will get current playing neteasemusic song, and try download\n\n##### B. `snm -fs` will found all download failed songs, and try re-download them.\n\n![auto-163-retry-failure](docs/images/auto-163-retry-failure.png)\n\n#### no params: `snm`\n\nif no params supplied, will show `-h` hints\n\n#### show help: `snm -h/--help`\n\n![help](docs/images/help.png)\n\n#### search single song/artist\n\n![search_n_b](docs/images/search_n_b.png)\n\n##### keys supported in search lifecycle\n\n`nN` load next page\n\n`pP` load previous page\n\n`bB` go back one layer\n\n`1~10` the number, will download the song\n\n`s` skip current song, if in scan mode\n\n#### choose site: -s 163/kugou \n\nbut 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.\n\n![from_netease](docs/images/with_site_param.png)\n\n#### scan\n\nwill scan songs saved dir, and try to fix ID3 tags and cover\n\n![scan](docs/images/scan.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoghost%2Fsonimei-music","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoghost%2Fsonimei-music","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoghost%2Fsonimei-music/lists"}