Skip to content

DaVinci42/Highlight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tools to manage clippings

pip install git+https://github.com/DaVinci42/highlight.git

  • Kindle
    • Parse My Clippings.txt to Clipping type
    • Sync to Notion, with default or customized layout
  • KoReader
    • Parse clippings from KoReader
    • Sync to Notion

5 sec delay after each book, to avoid exceeding API limit

  • Sync Kindle Clippings To Notion

    syncer.sync_kindle(
    	# token_v2 from your cookie    
    	token="",  
    
    	# url of your target notion page
    	page="",
    
    	# your 'My Clippings' file path
    	file_path="", 
    	
    	# optional, just in case you wanna customize layout
    	page_render: Callable[[BasicBlock, List[List[Clipping]]], None]  
    )
  • Sync KoReader Clippings

    syncer.sync_koreader(
        token: str,
        page: str,
        
        # your clipping folder, or single clipping.html
        path: str,
        page_render: Callable[[BasicBlock, List[Tuple[str, List[str]]], bool], None] = render_koreader_page,
        # replace will add TOC, if not will just append
        replace: bool = False
    )

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages