[TODO] implement NotebookLM API to automate this
- Read and highlight book using Apple's Books
- all highlights will be synced to iCloud
.sqlfile containing all Books highlights can be locally retrieved from macOS at:ANNOTATION_DB_PATTERN = "~/Library/Containers/com.apple.iBooksX/Data/Documents/AEAnnotation/AEAnnotation*.sqlite"LIBRARY_DB_PATTERN = "~/Library/Containers/com.apple.iBooksX/Data/Documents/BKLibrary/BKLibrary*.sqlite"
- Run script to generate
.mdfile with highlights (retains color coding) - Use some online service to convert original
.epubof the book you read to a.pdf, e.g. freepdfconvert.com- [TODO] try to do this locally via scripting if easy using some library, and high quality enough
- Upload to NotebookLM:
.pdfof entire book.mdfile of highlights
- Generate via NotebookLM:
- Podcast
- Briefing doc
- Timeline doc
- [optional] Study guide
- Export briefing doc to
.pdfandhtml- Once generation done, click on briefing doc and extract
.htmlsection- look for it in correspondence of search result "briefing document" (righ-click > inspect element,
Shift + Cmd + F)
- look for it in correspondence of search result "briefing document" (righ-click > inspect element,
- Copy
.htmland paste it into new.mdfile created via VS Code (you can also preview the file viaShift + Cmd + V) - From the
.mdfile tab in VS Code access command palette viaShift + Cmd + P - Type "export" > select
"Markdown PDF: Export"(note: requires installing Markdown PDF on VS Code)
- Once generation done, click on briefing doc and extract
- Repeat previous step for timeline doc