{"id":22127489,"url":"https://github.com/mattstein/literal-export","last_synced_at":"2025-03-24T08:24:27.625Z","repository":{"id":265779853,"uuid":"866890799","full_name":"mattstein/literal-export","owner":"mattstein","description":"CLI utility for exporting literal.club library.","archived":false,"fork":false,"pushed_at":"2024-10-03T04:49:54.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T01:30:43.350Z","etag":null,"topics":["cli","literal","utility"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/mattstein.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":"2024-10-03T04:16:08.000Z","updated_at":"2024-10-03T04:49:57.000Z","dependencies_parsed_at":"2024-11-30T22:44:23.479Z","dependency_job_id":"a6aa1373-75f6-4621-b669-be3fbd5c7801","html_url":"https://github.com/mattstein/literal-export","commit_stats":null,"previous_names":["mattstein/literal-export"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattstein%2Fliteral-export","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattstein%2Fliteral-export/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattstein%2Fliteral-export/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattstein%2Fliteral-export/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattstein","download_url":"https://codeload.github.com/mattstein/literal-export/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245233600,"owners_count":20581850,"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","literal","utility"],"created_at":"2024-12-01T17:19:09.399Z","updated_at":"2025-03-24T08:24:27.586Z","avatar_url":"https://github.com/mattstein.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Literal Export CLI Utility\n\nThis uses the [Literal](https://literal.club) [GraphQL API](https://literal.club/pages/api) to write your bookshelf items to a JSON file, and include reading start and end dates that aren’t included in the CSV export.\n\nIt prompts for your account email address and password in order to get a GraphQL token and make subsequent queries. (These credentials are not stored!)\n\n```\n❯ php literal-export\n\n Account email address:\n \u003e hi@example.foo\n\n Account password:\n \u003e\n\nLogging in...\nFetching reading states...\nFetching book data...\nCompiling book information...\n 220/220 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%\nWriting JSON...\nDone.\n```\n\nThe slow part is where each book is queried for its reading start and end dates, which get folded into the resulting information.\n\nThis will write `literal-export.json`, with a single array of book objects:\n\n```json\n[\n  {\n    \"title\": \"No Time to Spare\",\n    \"subtitle\": \"Thinking about what Matters\",\n    \"isbn10\": \"1328661598\",\n    \"isbn13\": \"9781328661593\",\n    \"publisher\": null,\n    \"publishedDate\": null,\n    \"authors\":\n    [\n      \"Ursula K. Le Guin\"\n    ],\n    \"pageCount\": 240,\n    \"readingState\": \"FINISHED\",\n    \"started\": \"2024-09-04\",\n    \"finished\": \"2024-09-15\"\n  }\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattstein%2Fliteral-export","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattstein%2Fliteral-export","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattstein%2Fliteral-export/lists"}