Styled exports of books I read on Kindle https://beatobongco.com/book-highlights/
This is a temporary setup. I plan to generalize this (perhaps on a separate repo) so others can use it. For now, however, these instructions will suffice.
- Clone this repo
- Remove contents of
raw_notes
andbook
folders pip install -r requirements.txt
- Dump your Kindle notes in the
raw_notes
folder. See file format - Run
python generate_pages.py
- Push
- Make your repo available as a github page and you're done!
The filename becomes the HTML filename and thus the URL.
e.g. a-mind-at-play
-> (run script) -> a-mind-at-play.html
-> on github pages this can be accessed as <your URL>/a-mind-at-play
The following format is subject to change, but for now files are parsed by line number.
Line 1: Title
Line 2: Summary (appears after title)
Line 3: Short summary (appears as meta description and opengraph description)
Line 4+: The actual output of your Kindle Reader export
For now, you'll have to manually design and generate your index page. However, in future iterations this will be autogenerated by script also.
Just change up book.css
and you're good to go!
You can add the url argument ?highlight=[YOUR QUERY]
to highlight the first instance of that query and scroll to it.
Live example: https://beatobongco.com/book-highlights/book/a-mind-at-play?highlight=genius