{"id":17099842,"url":"https://github.com/cppcoffee/klib","last_synced_at":"2026-05-02T15:36:10.934Z","repository":{"id":135559674,"uuid":"238397720","full_name":"cppcoffee/klib","owner":"cppcoffee","description":"kindle note export, support github api.","archived":false,"fork":false,"pushed_at":"2022-06-10T07:06:02.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T00:46:55.552Z","etag":null,"topics":["kindle"],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/cppcoffee.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":"2020-02-05T08:03:01.000Z","updated_at":"2022-01-14T06:21:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"94c0270f-44a5-4ded-9ef1-aed78109fbf2","html_url":"https://github.com/cppcoffee/klib","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/cppcoffee%2Fklib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cppcoffee%2Fklib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cppcoffee%2Fklib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cppcoffee%2Fklib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cppcoffee","download_url":"https://codeload.github.com/cppcoffee/klib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245147573,"owners_count":20568533,"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":["kindle"],"created_at":"2024-10-14T15:11:33.734Z","updated_at":"2026-05-02T15:36:05.891Z","avatar_url":"https://github.com/cppcoffee.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# klib\nThe kindle notebook export tool.\n\n## Usage\n\nsupports two usages：\n\n- export to a directory (each ebook marked with a file).\n- sync Github repository.\n\n```shell\n% ./klib --help\n\nklib 0.1.0\nthe kindle notebook export tool.\n\nUSAGE:\n    klib [OPTIONS] \u003cSUBCOMMAND\u003e\n\nFLAGS:\n    -h, --help       Prints help information\n    -V, --version    Prints version information\n\nOPTIONS:\n    -i, --input \u003cinput\u003e    Input file [default: /Volumes/Kindle/documents/My Clippings.txt]\n\nSUBCOMMANDS:\n    github    Upload notes to github repository.\n    help      Prints this message or the help of the given subcommand(s)\n    path      Output to the specified directory.\n```\n\n### Subcommand\n\n#### Export to directory\n\nuse **path** subcommand\n\n**--outdir**: directory path param, each ebook marked save to independent file, file name use ebook name + .md\n\n```shell\n$ ./klib -i ~/Download/MyClippings.txt path --outdir ~/kindle_notes/\n```\n\n#### Sync Github\n\nuse **github** subcommand\n\nThe function use Github API (https://developer.github.com/v3/repos/contents/#create-or-update-a-file) to create and update repo notes. program skip no modify notes.\n\n**--owner**: repository owner name.\n\n**--repo**: repository name.\n\n**--token**: Github OAuth2 token.\n\n```shell\n% ./klib -i ~/Desktop/MyClippings.txt github --owner cppcoffee --repo kindle_bookmark --token xxxxxxxxxx\n```\n\nThe Github sync notes example: https://github.com/cppcoffee/kindle_bookmark\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcppcoffee%2Fklib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcppcoffee%2Fklib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcppcoffee%2Fklib/lists"}