Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ashrithr/tana-readwise-exporter
CLI to export readwise highlights to Tana.io
https://github.com/ashrithr/tana-readwise-exporter
Last synced: 2 months ago
JSON representation
CLI to export readwise highlights to Tana.io
- Host: GitHub
- URL: https://github.com/ashrithr/tana-readwise-exporter
- Owner: ashrithr
- Created: 2022-11-15T16:09:35.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-15T16:14:18.000Z (about 2 years ago)
- Last Synced: 2024-08-03T22:14:55.362Z (5 months ago)
- Language: Go
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-readwise - tana-readwise-exporter - A CLI to export highlights to Tana.io. (Tools / Other)
README
# Readwise Exporter for Tana.io
`tana-readwise-exporter` uses Readwise Export API to fetch the highlights and formats the exported data using [Tana Paste](https://help.tana.inc/build-tutorials/tana-paste.html) format, which can be coppied to your Tana worksapce.
## Prerequisites
Generate a Readwise Access Token from [here](https://readwise.io/access_token). You'd need to pass this token as a command line option to the script.
## Installation
```bash
go get github.com/ashrithr/tana-readwise-exporter
```## Examples
### Export highlights for last 2 days
```bash
tana-readwise-exporter export --token --updated-after 2
```> On MAC you can copy the output fo the above command directly to the clipboard by piping the above command to `pbcopy`.
### Fetching highlights for specific books
step 1: list the books and get the Readwise ID(s) for specific books
```bash
tana-readwise-exporter list --token --category books
```step 2: get the highlights for specific books id's obtained from previous command
```bash
tana-readwise-exporter export --token --ids
```> you can fetch highlights for multiple books by passing comma separated list of ids `--ids 1234567,2345678`