{"id":32187854,"url":"https://github.com/conanchou/kce_clj","last_synced_at":"2025-10-22T00:34:41.094Z","repository":{"id":62433174,"uuid":"91910226","full_name":"ConanChou/kce_clj","owner":"ConanChou","description":"Kindle Clipping Extractor in Clojure","archived":false,"fork":false,"pushed_at":"2017-05-21T04:57:09.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-08T22:31:38.325Z","etag":null,"topics":["clojars","clojure","clojure-library","kindle-clippings","kindle-highlights"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","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/ConanChou.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-20T19:02:01.000Z","updated_at":"2017-05-20T21:59:49.000Z","dependencies_parsed_at":"2022-11-01T21:01:34.324Z","dependency_job_id":null,"html_url":"https://github.com/ConanChou/kce_clj","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ConanChou/kce_clj","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConanChou%2Fkce_clj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConanChou%2Fkce_clj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConanChou%2Fkce_clj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConanChou%2Fkce_clj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ConanChou","download_url":"https://codeload.github.com/ConanChou/kce_clj/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConanChou%2Fkce_clj/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280359906,"owners_count":26317404,"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-21T02:00:06.614Z","response_time":58,"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":["clojars","clojure","clojure-library","kindle-clippings","kindle-highlights"],"created_at":"2025-10-22T00:34:38.714Z","updated_at":"2025-10-22T00:34:41.089Z","avatar_url":"https://github.com/ConanChou.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kindle Clipping Extractor in Clojure (kce-clj)\n\nA simple library to extract Kindle generated `clipping.txt`.\n\n[![Clojars Project](https://img.shields.io/clojars/v/kce-clj.svg)](https://clojars.org/kce-clj)\n\n## Usage\n\nkce_clj comes with 2 flavors. A hard-working version and a lazy version:\n\n```\nλ (time (nth (extract \"clipping.txt\" \"EST\") 42))\n\"Elapsed time: 35.68178 msecs\"\n{:category :highlight,\n :page {:start 7, :end 7},\n :title \"Dance Music Manual: Tools, Toys, and Techniques\",\n :author \"Snoman, Rick\",\n :timestamp #inst \"2016-06-30T15:21:52.000-00:00\",\n :location {:start 274, :end 275},\n :text \"The harmonic minor scale is very similar to the natural minor scale\n but with the seventh note increased, or augmented, up the scale by a\n semitone.\"}\n\nλ (time\n    (with-open [rdr (clojure.java.io/reader \"clipping.txt\")]\n      (nth (lazy-extract rdr \"EST\") 42)))\n\"Elapsed time: 6.201403 msecs\"\n{:category :highlight,\n :page {:start 7, :end 7},\n :title \"Dance Music Manual: Tools, Toys, and Techniques\",\n :author \"Snoman, Rick\",\n :timestamp #inst \"2016-06-30T15:21:52.000-00:00\",\n :location {:start 274, :end 275},\n :text \"The harmonic minor scale is very similar to the natural minor scale\n but with the seventh note increased, or augmented, up the scale by a\n semitone.\"}\n```\n\nAs you can see, you need to be a bit more hard-working if you want your code to be lazy :)\n\n### Parameters\n\n```\n(use '[kce-clj.core :only [extract lazy-extract]])\n(extract file_path_string tz_id)\n(lazy-extract file_reader tz_id)\n```\n\n`tz_id` is a java `TimeZone` ID. `file_reader` should be a `clojure.java.io/reader`.\n\n\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconanchou%2Fkce_clj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconanchou%2Fkce_clj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconanchou%2Fkce_clj/lists"}