{"id":15586665,"url":"https://github.com/innei/move-hexo-to-typecho","last_synced_at":"2025-10-12T04:18:33.759Z","repository":{"id":103747188,"uuid":"185573096","full_name":"Innei/Move-Hexo-to-typecho","owner":"Innei","description":"迁移Hexo到typecho. Parse hexo md files, import post from hexo markdown files through MySQL.","archived":false,"fork":false,"pushed_at":"2023-12-01T17:17:19.000Z","size":4,"stargazers_count":10,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-24T04:45:44.700Z","etag":null,"topics":["hexo","typecho"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Innei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2019-05-08T09:18:51.000Z","updated_at":"2025-01-12T09:29:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"5280f452-dd12-4511-8920-9f56b962b07a","html_url":"https://github.com/Innei/Move-Hexo-to-typecho","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Innei/Move-Hexo-to-typecho","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2FMove-Hexo-to-typecho","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2FMove-Hexo-to-typecho/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2FMove-Hexo-to-typecho/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2FMove-Hexo-to-typecho/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Innei","download_url":"https://codeload.github.com/Innei/Move-Hexo-to-typecho/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2FMove-Hexo-to-typecho/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010259,"owners_count":26084718,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["hexo","typecho"],"created_at":"2024-10-02T21:40:56.326Z","updated_at":"2025-10-12T04:18:33.738Z","avatar_url":"https://github.com/Innei.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 迁移Hexo到typecho\n\n这是一个能解析_posts文件夹中的所有符合 `Hexo YAML` 格式的 markdown 文件解析，并且能远程连接 typecho 数据库，导入文章，标签，分类。\n\n## 准备工作\n\n安装 Python3.x，以及依赖 pymysql\n\n```bash\npip3 install pymysql\n```\n\n\n\n## 使用方法\n\n下载或克隆此项目，打开 `main.py` ，进行编辑，在 `HexoToTypecho(host='', user='', database='', files, passwd='')` （位于最后一行），填入相关参数，分别是 typecho数据库，用户名，数据库名，密码。\n\n默认处理md文件夹位于 `_posts` 文件夹。使用前把 `main.py` 放入 `你的hexo目录/source` 然后使用 Python3 运行。\n\n## 常见问题\n\n* 出现 NoneType 报错\n  - 文档没有按照标准 markdown 格式或 YAML 格式编写\n* 正文提取出现 NoneType 报错\n  - `---`内容后加两个 `\\n` 再写正文","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnei%2Fmove-hexo-to-typecho","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finnei%2Fmove-hexo-to-typecho","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnei%2Fmove-hexo-to-typecho/lists"}