{"id":18663269,"url":"https://github.com/ronething/mp-music","last_synced_at":"2025-11-06T07:30:39.389Z","repository":{"id":40487201,"uuid":"178906337","full_name":"ronething/mp-music","owner":"ronething","description":"微信公众号 音乐 API 接入","archived":false,"fork":false,"pushed_at":"2022-05-05T06:25:13.000Z","size":654,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-27T16:44:25.429Z","etag":null,"topics":["python3","wehcat"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ronething.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":"2019-04-01T16:44:59.000Z","updated_at":"2021-09-06T16:02:45.000Z","dependencies_parsed_at":"2022-08-09T22:00:30.835Z","dependency_job_id":null,"html_url":"https://github.com/ronething/mp-music","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronething%2Fmp-music","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronething%2Fmp-music/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronething%2Fmp-music/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronething%2Fmp-music/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ronething","download_url":"https://codeload.github.com/ronething/mp-music/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239487473,"owners_count":19647002,"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":["python3","wehcat"],"created_at":"2024-11-07T08:15:52.318Z","updated_at":"2025-11-06T07:30:39.343Z","avatar_url":"https://github.com/ronething.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mp-music\n\n## Introduction\n\n微信公众号接入音乐 API\n\n其实应该很多人都做过了。只是无聊又想给自己的订阅号接入一下。\n\n## Run\n\n```python\ngit clone [repo]\npipenv install\n```\n\n~~在 `config/setting.py` 下新增 TOKEN='xxxx' 与公众号配置的 TOKEN 一致。~~\n\n在 `app/config` 目录下新建 `secure.py`  新增 TOKEN='xxxx' 与公众号配置的 TOKEN 一致\n\n```sh\npipenv shell\npython manage.py\n```\n\n## Deploy\n\n`mpmusic` 为 nginx 配置文件放置于 `/etc/nginx/sites-enabled/mpmusic`\n\n`mpmusic.conf` 为 supervisor 配置文件放置于 `/etc/supervisor/conf.d/mpmusic.conf`\n\n\u003e 为了让 Click 在 Unix 以及 Python3 环境下能够正确处理编码问题，我们需要将环境变量 LC_ALL 和 LANG 设为 C.UTF-8 或 en_US.UTF-8，在 supervisord.conf 配置文件写入 -- 参考 《flask web 开发实战》\n\n```shell\nsudo vim /etc/supervisor/supervisord.conf\n```\n\n```shell\n# 在 [supervisord] 下面添加\nenvironment=LC_ALL='en_US.UTF-8',LANG='en_US.UTF-8'\n```\n\n## Demo\n\n![music](./assets/music.gif)\n\n## Change Log\n\n- Tue Sep 17 17:51:55 CST 2019 third version\n\n增加 redis 缓存 因为个人订阅号没有办法使用客服接口？\n\n- 2019年 09月 13日 星期五 01:46:35 CST second version\n- Tue Apr  2 02:13:13 first version\n\n## Acknowledgement\n\n- [music-dl](https://github.com/0xHJK/music-dl)\n- [qqmusic-api](https://github.com/MeiK2333/QQMusicAPI)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronething%2Fmp-music","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fronething%2Fmp-music","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronething%2Fmp-music/lists"}