Downloads books from https://bookmate.com and saves them as epub format files.
(UPDATE): After installation, uninstall pycrypto and install pycryptodome, otherwise it will fail while downloading.
Works on Mac OS X, Linux. For Windows 10 you'll need to install WSL (Windows subsystem for linux) aka Windows Ubuntu.
Steps:
- Buy the subscription at bookmate.com
- Authorize at bookmate.com with your chrome browser
- install python3
- Copy the bookid (open the book at bookmate.com and check the url)
python3 bookmate_downloader.py --bookid BookIdHere
- The epub will be downloaded to "out"
sudo apt update
sudo apt install -y python3-pip
git clone https://github.com/ilyakharlamov/bookmate_downloader
cd bookmate_downloader
pip3 install -r src/python3/requirements.txt
python3 src/python3/bookmate_downloader.py --bookid KFHDG3bp
git clone https://github.com/ilyakharlamov/bookmate_downloader.git .
docker build -t bookmate_dl .
docker run -it --mount type=bind,source=$(pwd),target=/mnt/data bookmate_dl --bookid KFHDG3bp --log DEBUG --outdir /mnt/data
- Install & Run WSL
cd /mnt/c/users/myusername
git clone https://www.github.com/ilyakharlamov/bookmate_downloader
cd bookmate_downloader
sudo apt-get update
sudo apt install -y python3-pip
pip3 install -r src/python3/requirements.txt
python3 src/python3/bookmate_downloader.py --bookid KFHDG3bp
- After completion, you will find your book at your home folder at bookmate_downloader/out
You will be asked for 'BMS cookie', in order to get it:
- Go to your browser
- log in to bookmate.com
- Open developer'console (F12)
- Click Application
- Click 'Cookies' on the left
- Find bms on the right
- Copy the value