Coder Social home page Coder Social logo

bookmate_downloader's Introduction

Bookmate Downloader

Downloads books from https://bookmate.com and saves them as epub format files.

You need to be subscribed to bookmate.com premium OR download books that are available for free !!!

Works on Mac OS X, Linux. For Windows 10 you'll need to install WSL (Windows subsystem for linux) aka Windows Ubuntu.

Steps:

  1. Buy the subscription at bookmate.com
  2. Authorize at bookmate.com with your chrome browser
  3. install python3
  4. Copy the bookid (open the book at bookmate.com and check the url)
  5. python3 bookmate_downloader.py --bookid BookIdHere
  6. The epub will be downloaded to "out"

Installation details:

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

Docker Usage (Alternative "installation")

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

From Windows:

  1. Install & Run WSL
  2. cd /mnt/c/users/myusername
  3. git clone https://www.github.com/ilyakharlamov/bookmate_downloader
  4. cd bookmate_downloader
  5. sudo apt-get update
  6. sudo apt install -y python3-pip
  7. pip3 install -r src/python3/requirements.txt
  8. python3 src/python3/bookmate_downloader.py --bookid KFHDG3bp
  9. 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:

  1. Go to your browser
  2. log in to bookmate.com
  3. Open developer'console (F12)
  4. Click Application
  5. Click 'Cookies' on the left
  6. Find bms on the right
  7. Copy the value

Для российских пользователей:

после 24.02.2022 букмейт ушёл из РФ

Русский букмейт и мировой букмейт разделились, теперь русский сайт делает команда яндекса, не связанная с предыдущей, на другом движке, поэтому скрипт работать с яндексовским букмейтом не работает.

Скрипт продолжает работать только с обычным, не-яндексовским bookmate.com. Можно поставить VPN и качать с мирового.

bookmate_downloader's People

Contributors

ilyakharlamov avatar dejanzelic 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.