Gist 1c748c68adc016993b3c95f83dca603e
✓ Published0🌍 Public
UUtopiah
Last edited Feb 16, 2022
Created on Feb 16, 2022
This shell script demonstrates a workflow for syncing highlights from a reMarkable tablet to the Readwise API. It iterates through directories containing highlight files, extracts the document title from accompanying metadata, and processes JSON highlight data using `jq`. The script filters out empty highlights, constructs JSON payloads with the text, title, and author, then sends them via `curl` POST requests to `https://readwise.io/api/v2/highlights/` with an authorization token. The output is a series of API calls that populate a Readwise library with annotated passages.
AI-generated description