Skip to content

Leone25/kitaboo-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kitaboo-downloader

A tool to download your books from Zanichelli into PDFs.

THIS DOES NOT WORK WITH BOOKS FROM BOOKTAB, FOR THAT PLEASE CHECK https://github.com/Leone25/booktab-downloader

Requirements

  • Node >= 14.0
  • Windows 10 or higher (The script hasn't been tested on other platforms, but it may work, you will likely have issues on mac os)
  • A modern browser (Chrome, Edge, Firefox ...)

Installation

  1. Download the source code from here or click the above green button Code and click Download Zip
  2. Extract the zip file in a new folder and open it
  3. Open the folder in a terminal
    1. If you are on Windows 11, just right click and press Open with Windows Terminal
    2. If you are on Windows 10, hold shift on your keyboard and right click on a white space, then press Open command window here
  4. Type in the terminal:
    npm i

How to use

  1. Open https://my.zanichelli.it in your browser and open the menu of the book you'd like to download and open the web reader

  2. Open the dev tools (f12 works), navigate to the network page in the dev tools and make sure that caching is disabled and that permanent log is enabled, then refresh the page

  3. In the developer tools open the console and copy window.angularComponentRef.render.settings.encResource and press enter, if the result is not undefined, then copy the output string (without any quotes)

  4. Open the folder in a terminal (as described above) and run the script with node typing:

    node .
  5. If in step 3 you've got undefined say n and skip the next step, else y

  6. Paste they encryption key you have obtained and press enter

  7. Go back to the developers tools and now look in the network tab, find the file content.opf and click on it

  8. It should now display the full url of the file and some other information (you may need to click on the headers sub-tab)

  9. From the displayed url copy the ebookID, which is a number repeated 2 times in the url, and paste it in the terminal and press enter

  10. Scroll down in the file information (back in the network page) and find where it says Cookie:, select everything after that (be aware, on firefox you'll need to toggle "Raw" to see the full header, as with long values they get shortened), copy and paste it in the terminal

  11. Wait, the book will be downloaded and saved to the script' directory

NOTE: You will have to do again all the steps if you want to download another book, the encryption key is different for every book

Disclaimer

Remember that you are responsible 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.

I may or may not update this script depending on my needs, but I'm open to pull requests ecc.

License

This software uses the MIT License

About

A tool to download your books from zanichelli into PDFs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published