{"id":13752378,"url":"https://github.com/alex-schaaf/klip","last_synced_at":"2026-02-15T22:35:18.762Z","repository":{"id":110317163,"uuid":"202113251","full_name":"alex-schaaf/klip","owner":"alex-schaaf","description":"Extract kindle clippings and sort them by author and book title into folders and markdown files.","archived":false,"fork":false,"pushed_at":"2021-06-13T15:15:16.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-16T05:31:56.397Z","etag":null,"topics":["cli","ebook","kindle","python3","script","typer"],"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/alex-schaaf.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}},"created_at":"2019-08-13T09:43:42.000Z","updated_at":"2021-06-13T15:15:18.000Z","dependencies_parsed_at":"2023-04-13T05:19:31.038Z","dependency_job_id":null,"html_url":"https://github.com/alex-schaaf/klip","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/alex-schaaf%2Fklip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-schaaf%2Fklip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-schaaf%2Fklip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-schaaf%2Fklip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alex-schaaf","download_url":"https://codeload.github.com/alex-schaaf/klip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253312293,"owners_count":21888615,"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":["cli","ebook","kindle","python3","script","typer"],"created_at":"2024-08-03T09:01:04.858Z","updated_at":"2026-02-15T22:35:18.756Z","avatar_url":"https://github.com/alex-schaaf.png","language":"Python","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# klip\n\n![](https://img.shields.io/badge/python-3-blue)\n\nA tiny Python CLI program that reads your book highlights from a connected Kindle device, sorts through the mess and organizes all clippings into per-book markdown files and saves them into author folders at a given destination folder.\n\n## Usage\n\nThe script just needs the input file and an output folder:\n\n```\n$ python klip.py \"~/Documents/kindle_highlights\"\n\nSync complete.\nSuccessfuly synced 22 new highlights to ~/Documents/kindle_highlights\nSkipped 901 highlights already existing at ~/Documents/kindle_highlights\n```\n\nThis will sort everything into this folder structure:\n\n```\nClippings\n└─── Author A\n|   |   Book A1.md\n|   |   Book A2.md\n...\n└─── Author Z\n    |   Book Z1.md\n```\n\nWith the markdown files being formatted as follows:\n\n```\n# What I Talk About When I Talk About Running (Haruki Murakami)\n\n## Page 2 | Location 26-27 | 28 January 2018 22:26:17\nNo matter how mundane some action might appear, keep at it long enough and it becomes a contemplative, even meditative act.\n\n...\n```\n\nThe program automatically checks if highlights already exist at the destination and only appends new ones to their respective files.\n\n## Installation\n\nFirst clone this repository using git:\n\n```\n$ git clone https://github.com/alex-schaaf/klip.git\n```\n\nThen install the dependencies using either the provided `Pipfile` or manually.\n\n### Pipenv\n\n```\n$ pip install pipenv\n$ pipenv install\n```\n\n### Manual\n\n```\n$ pip install typer\n```\n\n### Using the CLI\n\nRun the program to export the highlights as sorted markdown files:\n\n```\n$ python klip.py \u003cdestination\u003e\n```\n\nTo export the Kindle highlights as JSON run with flag `--json`:\n```\n$ python klip.py \u003cdestination\u003e --json\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-schaaf%2Fklip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falex-schaaf%2Fklip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-schaaf%2Fklip/lists"}