{"id":20791028,"url":"https://github.com/yven/rust-notion-api","last_synced_at":"2026-04-20T08:04:54.842Z","repository":{"id":164391702,"uuid":"599015030","full_name":"Yven/rust-notion-api","owner":"Yven","description":"Get Notion page contents by rust and export Markdown or HTML file","archived":false,"fork":false,"pushed_at":"2023-03-21T06:26:03.000Z","size":291,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-18T10:44:34.817Z","etag":null,"topics":["notion","notion-api","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/Yven.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-02-08T09:21:09.000Z","updated_at":"2023-10-16T18:58:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"2a27da7f-30f2-48c4-bc74-c9ea6e90fabb","html_url":"https://github.com/Yven/rust-notion-api","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yven%2Frust-notion-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yven%2Frust-notion-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yven%2Frust-notion-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yven%2Frust-notion-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yven","download_url":"https://codeload.github.com/Yven/rust-notion-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243136238,"owners_count":20241988,"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":["notion","notion-api","rust"],"created_at":"2024-11-17T15:40:18.973Z","updated_at":"2026-04-20T08:04:49.799Z","avatar_url":"https://github.com/Yven.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\r\n\r\n# Rust Notion Api\r\n使用Rust调用Notion API获取内容，可以选择导出页面为`.md`或`.html`文件\r\n\r\n\u003c/div\u003e\r\n\r\n## 特性\r\n- [x] 调用Notion API获取页面内容\r\n- [x] 输出页面为Markdown\r\n- [ ] 输出页面为HTML\r\n- [ ] 作为rust-lib调用\r\n- [ ] 使用命令行调用\r\n\r\n## 安装\r\n\r\n## 使用\r\n### 1.复制并修改配置文件\r\n```shell\r\ncp secret.json.example secret.json\r\n```\r\n将你申请的Notion API密钥和要查询的databases id写入\r\n\r\n### 2.运行\r\n```shell\r\ncargo run\r\n```\r\n\r\n## TODO LIST\r\n- [x] 构造请求筛选器\r\n- [x] 分隔筛选和排序\r\n- [x] 分离筛选模块中的属性模块，方便复用\r\n- [x] 添加block结构和生成方法\r\n- [x] 优化各结构to_string方法\r\n- [x] 整理结构和调用关系（调整notion模块的结构）\r\n- [x] 完成筛选模块中属性的其他匹配方法\r\n- [x] 统一错误结构\r\n- [x] markdown格式映射\r\n- [ ] \u003cdel\u003e常用函数整理为宏\u003c/del\u003e\r\n- [x] 不同的block|rich_text附带的属性特殊处理\r\n- [x] 优化property::new()方法\r\n- [ ] 优化递归\r\n- [ ] 完成请求模块的其他方法\r\n- [x] 静态request模块（或可复用）\r\n- [ ] \u003cdel\u003e全局可复用\u003c/del\u003e\r\n- [x] Page/Database结构和方法\r\n- [ ] 请求分页参数处理\r\n- [ ] 异步请求\r\n- [ ] 单元测试\r\n- [ ] doc,rs文档\r\n- [ ] 容器化\r\n- [ ] md外链语法\r\n- [ ] md标准输出模式\r\n\r\n## License\r\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyven%2Frust-notion-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyven%2Frust-notion-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyven%2Frust-notion-api/lists"}