BookRip is a Bash script designed to download images of a book from the flipbook.apps.gwo.pl
website, merge them into a PDF, and name the output based on the book's title. The script provides color-coded status messages for a more interactive experience.
- Downloads book images sequentially.
- Automatically names the PDF based on the book's title.
- Merges downloaded images into a single PDF file.
Before using the script, ensure you have the following installed:
curl
: For fetching the book's title and downloading images.ImageMagick
: For merging images into a PDF.
You can install and use BookRip by cloning it from GitHub. Follow these steps:
- Open your terminal.
- Clone the repository:
git clone https://github.com/PiotrGebczyk/BookRip.git
- Navigate into the cloned directory:
cd BookRip
- Make the script executable:
chmod +x BookRip.sh
Now, you're ready to use the script to download books.
To use the script, you'll need the bookid
of the book you want to download. You can find it using a Google search prompt. Here's how:
-
Open Google.
-
Type the following search prompt:
[Title] site:flipbook.apps.gwo.pl
Replace
[Title]
with the name of the book you're looking for. -
The search results will show you a link to the book. Extract the
bookid
from the URL:https://flipbook.apps.gwo.pl/display/[bookid]
-
After finding the
bookid
, you can run the script like this:./BookRip.sh <bookid>
Replace
<bookid>
with the actual book ID from the Flipbook URL. -
The script will:
- Fetch the book’s title and display it in green.
- Download all the pages of the book into a folder.
- Merge them into a single PDF file.
- Display status messages in yellow during the merging process.
Downloading a book with the ID 12345
and name Textbook123abc
./BookRip.sh 12345
You are downloading: "Textbook123abc" :)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 247k 100 247k 0 0 574k 0 --:--:-- --:--:-- --:--:-- 577k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 212k 100 212k 0 0 632k 0 --:--:-- --:--:-- --:--:-- 636k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404
Book downloaded. Merging and cleaning.
Book "Textbook123abc" (probably) succesfully downloaded