Giter Club home page Giter Club logo

highlight-extract's Introduction

Highlight Extractor

Highlight Extractor is an application designed to extract highlights from iBooks and Apple Books and save them to a text file. This tool is particularly useful for readers who want to keep an organzied record of their highlights for future reference. NLP is intended to be added in future updates. Stay tuned!

Features

  • Extracts highlights from iBooks
  • Organizes highlights by book and color
  • Saves the extracted highlights to a text file
  • Easy-to-use graphical interface

Requirements

  • Python 3.x
  • Tkinter

Installation

  1. Ensure you have Python 3 installed on your system.
  2. Install the required Python packages:
    pip install tk
  3. Download or clone the repository.

Usage

  1. Running the Script:

    You can run the script directly using Python:

    python extract_highlights.py
  2. Using the GUI:

    • Open the application.
    • Click on the "Browse..." button to select the output file where the highlights will be saved.
    • Click on the "Extract Highlights" button to start the extraction process.
    • A success message will be displayed once the highlights have been extracted and saved.

Code Overview

extract_highlights.py

This script performs the following tasks:

  • Connects to the iBooks SQLite database to retrieve highlights.
  • Organizes the highlights by book ID and color.
  • Saves the organized highlights to a specified text file.
  • Provides a graphical interface for selecting the output file and running the extraction process.

Functions

  • extract_highlights(output_path): Connects to the SQLite database, retrieves highlights, organizes them, and saves them to the specified output file.
  • select_output_file(): Opens a file dialog to select the output file.
  • run_extraction(): Initiates the highlight extraction process and displays success or error messages.

Graphical Interface

The graphical interface is built using Tkinter. It provides an easy-to-use interface for selecting the output file and starting the extraction process.

Enjoy using Highlight Extractor to keep track of your Apple Books highlights!

highlight-extract's People

Contributors

zzadxz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.