A python script to download you Zanichelli books from web Booktab as PDFs!
THIS TOOL HAS NOW BEEN MERGED WITH THE SCRIPT FOR THE WEB READER, PLEASE CHECK OUT https://github.com/Leone25/zanichelli-downloader FOR THE NEW AND UPDATED VERSION, THIS WILL RECEIVE NO UPDATES
NOTE: Often chromium browsers (Eg. chrome, edge ...) don't always show the cookie for whatever reason. Please use firefox, and remember to enable "show raw headers" otherwise the cookie will be shortened and you will receive an error.
-
Download this repo, unzip the download, open a terminal, navigate to the extracted files and type:
pip install -r requirements.txt
-
Run the script with python3
-
Open Booktab Web and login
-
Open the developers tool, go in the "network" tab and enable the
Fetch/XHR
filter and disable cache -
Click on the cover of the volume you'd like to download in the booktab page
-
Back in the network tools look for the
volume.xml
orspine.xml
file that should appear in the network tab -
Select it and scroll down to the boottom of the headers where it says
Cookie
-
If you're on macOS: paste the cookie in the cookies.txt file, otherwise copy all the cookies (do not include the
Cookie:
part) and paste them in the terminal and press enter -
Take the ISBN of the book you'd like to download, paste it into the terminal and press enter
-
The script will now begin downloading the book, the amount of time it takes to do everything depends on your internet speed and the size of the book
-
After the download is done it will ask for a file name, write the name of the book and press enter
-
Now you have a .pdf in the same directory of the script, enjoy!
NB: Some times one IBSN might refer to multiple books, in that case look for the IBSN in the url, it's in the url.
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.
This software uses the MIT License