This utility scrapes Mr. Money Mustache's blog and generates ebooks in multiple formats (azw3, epub, mobi, pdf)
The ebook files are found in Releases
You can either:
- Fork this repo and run the
release
workflow in Github to create a new release - Use docker to auto generate the ebooks
- Install the required dependencies directly on your machine and run the python script to generate the ebooks
To build the docker image, run the following command from the root of the repo:
docker build -t mmm-ebook .
To run the docker image, run the following command from the root of the repo:
docker run -it --rm -v $PWD:/data --name mmm-ebook-app mmm-ebook
The ebooks will be generated in the Ebooks directory on your host machine.
This project depends on:
- Calibre. You will need to install this manually or via package manager. If this is not installed on your computer the script should still generate an HTML copy of the MMM blog but will not update the ebooks included in the repo.
In the repo root run pip3 install -r requirements.txt
to install python dependencies via pip, then run generate-ebooks.py Ebooks
in the repo root. When the script completes pdf, mobi, epub, and azw3 ebooks in the Ebooks dir will be updated with the latest posts. If you would like to generate ebooks yourself in Calibre you can import the file import_index.html_in_this_folder_in_calibre_to_create_ebook/index.html
, which will let you convert it to the format of your choice. Note: You will want to set Calibre to import HTML files in breadth-first order by going to Preferences → Advanced → Plugins → File type → HTML to ZIP and checking Add linked files in breadth first order.
You can see Mr Money Mustache's endorsement of this project here.
"Awesome work!! You hereby have my full approval to share this book (and work together to improve it if you like). As long as you give it away for free!"