Extract Moon+ Reader highlights (from a mrexpt file), and place its contents into a markdown file.
Before running this program, you need to create a mrexpt file, that contains all the data related to the highlights. To do this:
- Open Moon+ Reader on your phone/tablet
- Open the book with the highlights you want to extract
- Click on the middle of the screen, to open a menu
- Click on the "chapters" icon at the bottom of the screen (the icon with 3 lines and 3 dots)
- Go to "bookmarks", at the top of the screen
- Click on the "Share" icon at the bottom left of the screen
- Click on "Export list to file"
- Choose the location you want to save, click on "OK"
- Copy the file you just created to your computer
Before installing this program, make sure you have python (version 3.9 or above) and git installed.
To download and use it, run first the following command:
git clone https://github.com/Guilherme-Natan/MoonReader-Highlights-Extractor.git
cd MoonReader-Highlights-Extractor/
You will need to run a command with the following structure:
python3 moonreader.py <path_of_mrexpt_file>
After that, the script will create a new markdown file, in the same directory as it is installed. It will have the same basename as the mrexpt file, and a .md
extesion.
If you want to extract the highlights from a file called "Getting Things Done.mrexpt", place this file in the same directory as the "moonreader.py" script, and run the following command:
python3 moonreader.py "Getting Things Done.mrexpt"
After that, a Getting Things Done.md
file will be created, also in the same directory as the script.