{"id":24769403,"url":"https://github.com/qqays/memos2md","last_synced_at":"2026-05-06T07:38:11.958Z","repository":{"id":240267245,"uuid":"802155474","full_name":"qqAys/memos2md","owner":"qqAys","description":"一个将 memos 转换为 Markdown 格式并保留附件的 Python 脚本；A python script to convert memos to markdown without losing attachments","archived":false,"fork":false,"pushed_at":"2024-05-17T16:26:14.000Z","size":1252,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T02:54:16.068Z","etag":null,"topics":["markdown","memos","python"],"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/qqAys.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}},"created_at":"2024-05-17T16:15:07.000Z","updated_at":"2024-05-17T16:27:19.000Z","dependencies_parsed_at":"2024-05-17T17:40:16.376Z","dependency_job_id":"58aa66ce-ecbc-47d4-9fd0-0e99275f4380","html_url":"https://github.com/qqAys/memos2md","commit_stats":null,"previous_names":["qqays/memos2md"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qqAys%2Fmemos2md","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qqAys%2Fmemos2md/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qqAys%2Fmemos2md/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qqAys%2Fmemos2md/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qqAys","download_url":"https://codeload.github.com/qqAys/memos2md/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245154316,"owners_count":20569481,"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":["markdown","memos","python"],"created_at":"2025-01-29T02:53:37.714Z","updated_at":"2026-05-06T07:38:06.938Z","avatar_url":"https://github.com/qqAys.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# memos2md\r\n这是一个memos转换markdown脚本，通过读取数据库关系，区分用户建立md文件并处理附件。\r\n\r\n# 使用方法\r\n\r\n1. 参考 [Using Python on Unix platforms](https://docs.python.org/3/using/unix.html) 安装python3，如本地存在，则无需安装额外依赖。\r\n2. 将 `memos2md.py` 放置到 memos 的数据目录下，文件结构看起来像下面一样（不同的设置可能会导致目录结构有所不同，复制到与 `memos_prod.db` 同一目录下即可）：\r\n    ```md\r\n    ./\r\n    ├── assets\r\n    │   ├── 1695436471_f7adca31d257093592b84abfd5a105c2.jpeg\r\n    │   └── ...(attachment)\r\n    ├── memos_prod.db\r\n    └── memos2md.py\r\n    ```\r\n3. 执行 `python memos2md.py` 即可。\r\n4. 导出的文件将在 `memos2md_files` 中。\r\n\r\n# 示例\r\n\r\n## 运行示例\r\n\r\n![运行示例](.md_assets/running.png)\r\n\r\n## 导出示例\r\n\r\n```md\r\n./memos2md_files\r\n├─ Jinx\r\n│  │  Jinx_20230829192941.md\r\n│  │  ...\r\n│  │  Jinx_20231114210821.md\r\n│  │  Jinx_20240322235236.md\r\n│  │\r\n│  └─ assets\r\n│      │  1695436471_f7adca31d257093592b84abfd5a105c2.jpeg\r\n│      │  1695436471_IMG_2166.jpeg\r\n│      │  1695436471_IMG_2176.jpeg\r\n│      │  1695436471_IMG_2187.jpeg\r\n│      │  ...\r\n│      │\r\n│      └─ blob2file\r\n│              1693308581_image.jpg\r\n│              1693656577_image.jpg\r\n│              1693656577_IMG_2048.jpeg\r\n│              ...\r\n│\r\n└─ User2\r\n    │  User2_20230828160701.md\r\n    │  User2_20230829184826.md\r\n    │  User2_20230830193503.md\r\n    │  ...\r\n    │\r\n    └─ assets\r\n        │  1696134406_IMG_1900.jpeg\r\n        │  1696137250_IMG_1913.jpeg\r\n        │  1696137251_IMG_1914.jpeg\r\n        │  ...\r\n        │\r\n        └─ blob2file\r\n                1693656657_image.jpg\r\n```\r\n\r\n![文件示例](.md_assets/md_file.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqqays%2Fmemos2md","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqqays%2Fmemos2md","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqqays%2Fmemos2md/lists"}