{"id":26491286,"url":"https://github.com/asc8384/sogoupopulardict","last_synced_at":"2025-10-14T15:06:52.821Z","repository":{"id":283243170,"uuid":"950441483","full_name":"ASC8384/SogouPopularDict","owner":"ASC8384","description":"搜狗网络流行新词自动更新工具","archived":false,"fork":false,"pushed_at":"2025-07-01T03:56:51.000Z","size":5878,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-01T04:34:12.479Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/ASC8384.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-18T06:59:23.000Z","updated_at":"2025-07-01T03:56:53.000Z","dependencies_parsed_at":"2025-04-04T04:22:02.393Z","dependency_job_id":"44a77190-7d21-4674-9d74-5ca1d5520aaf","html_url":"https://github.com/ASC8384/SogouPopularDict","commit_stats":null,"previous_names":["asc8384/sogoupopulardict"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ASC8384/SogouPopularDict","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASC8384%2FSogouPopularDict","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASC8384%2FSogouPopularDict/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASC8384%2FSogouPopularDict/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASC8384%2FSogouPopularDict/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ASC8384","download_url":"https://codeload.github.com/ASC8384/SogouPopularDict/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASC8384%2FSogouPopularDict/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263671757,"owners_count":23494034,"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":[],"created_at":"2025-03-20T08:17:47.518Z","updated_at":"2025-10-14T15:06:47.784Z","avatar_url":"https://github.com/ASC8384.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 搜狗网络流行新词自动更新工具\n\n这个项目用于自动从搜狗拼音输入法词库下载网络流行新词，并将其转换为纯文本格式和Rime输入法可用的YAML格式。\n\n## 功能特点\n\n- 自动从搜狗拼音输入法词库下载最新的网络流行新词\n- 将搜狗细胞词库格式(.scel)转换为纯文本格式(.txt)\n- 生成两个版本的词库：当前版本和累积版本（包含历史词条）\n- 将词库转换为Rime输入法可用的YAML格式\n- 通过GitHub Actions实现每日自动更新\n\n## 文件结构\n\n```\n.\n├── .github/workflows/   # GitHub Actions工作流配置\n│   └── update_dict.yml  # 自动更新词库的工作流\n├── data/                # 存放词库数据\n│   ├── sogou_network_words_current.txt        # 当前版本词库（纯文本）\n│   ├── sogou_network_words_accumulated.txt    # 累积版本词库（纯文本）\n│   ├── luna_pinyin.sogoupopular.current.dict.yaml  # 当前版本词库（Rime格式）\n│   ├── luna_pinyin.sogoupopular.dict.yaml     # 累积版本词库（Rime格式）\n│   └── version_info.json  # 版本信息\n├── scripts/             # 脚本文件\n│   ├── download_and_convert.py  # 下载并转换搜狗词库\n│   ├── convert_to_rime.py       # 转换为Rime格式\n│   └── run_all.py               # 运行所有流程\n├── requirements.txt     # 依赖包列表\n└── README.md            # 项目说明\n```\n\n## 使用方法\n\n### 本地运行\n\n1. 克隆仓库：\n\n```bash\ngit clone https://github.com/ASC8384/SogouPopularDict.git\ncd SogouPopularDict\n```\n\n2. 安装依赖：\n\n```bash\npip install -r requirements.txt\n```\n\n3. 运行完整流程：\n\n```bash\npython scripts/run_all.py\n```\n\n或者分步运行：\n\n```bash\n# 下载并转换词库\npython scripts/download_and_convert.py\n\n# 转换为Rime格式\npython scripts/convert_to_rime.py\n```\n\n### 在Rime输入法中使用\n\n1. 将生成的YAML文件复制到Rime的用户目录：\n   - Windows: `%APPDATA%\\Rime`\n   - macOS: `~/Library/Rime`\n   - Linux: `~/.config/ibus/rime` 或 `~/.config/fcitx/rime`\n\n2. 在Rime的配置文件中添加词库，例如在`default.custom.yaml`中：\n\n```yaml\npatch:\n  schema_list:\n    - schema: luna_pinyin\n  luna_pinyin:\n    dictionary: luna_pinyin\n    custom_dict:\n      - luna_pinyin.sogoupopular\n```\n\n3. 重新部署Rime输入法。\n\n### 自动更新\n\n本项目使用GitHub Actions实现每日自动检查和更新。工作流程如下：\n\n1. 每天自动检查搜狗词库是否有更新\n2. 如有更新，下载并转换词库\n3. 自动提交更改到仓库\n\n您可以通过以下方式手动触发更新：\n\n1. 在GitHub仓库页面，点击\"Actions\"标签\n2. 选择\"自动更新搜狗网络流行新词词库\"工作流\n3. 点击\"Run workflow\"按钮\n\n## 许可证\n\nMIT\n\n## 致谢\n\n- 感谢搜狗拼音输入法提供的网络流行新词词库\n- 感谢Rime输入法开发团队 ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasc8384%2Fsogoupopulardict","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasc8384%2Fsogoupopulardict","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasc8384%2Fsogoupopulardict/lists"}