Giter VIP home page Giter VIP logo

bsmart-downloader's Introduction

bSmart-downloader

Download your books from bSmart as offline pdf

How to use

Installation

(NOTE: this assumes you already have node.js)

  1. Download and extract the repo
  2. Open a terminal window in the folder where you extracted the repo
  3. Run npm i to install all the required dependencies

Usage

  1. Open a terminal window in the folder where you extracted the repo
  2. Run node index.js
  3. Open bSmart in your browser, then open the dev tools (F12) and go to the storage(Firefox) or application(Chromium) tab, there click on Cookie, then https://my.bsmart.it, then copy in the terminal the cookie called _bsw_session_v1_production
  4. Input the id of the book you'd like to download, either from the list or from the url, after /books/. It's ususally a 4 digit number
  5. Press enter and the script will start working, a file will be saved in the same folder as the one with the index.js with the name of the book, containing the full book downloaded.

NOTE: some times this doesn't work flawlessly, i've tryed to fix all the issues I've had but in some cases you might need to do a manual download and merge, for this please download pdftk and run node index.js --pdftk

Further options are available, run node index.js --help for more info.

Enjoy

Remember that you are sesponsible for what you are doing on the internet and even tho this script exists it might not be legal in your country to create personal backups of books.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

MIT licence

I may or may not update it depending on my needs tho I'm open to pullup requests ecc.

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.