45 lines
1.2 KiB
Markdown
45 lines
1.2 KiB
Markdown
# Ranobe lib dumper
|
|
|
|
First we need to install their PWA web-site as an application on our phone.
|
|
|
|
Once it's done, we can choose ranobe we want to download and click to download it.
|
|
|
|
|
|
Once ranobe is loaded, we need to connect android phone using ADB.
|
|
|
|
```bash
|
|
adb devices # Should show your device
|
|
|
|
mkdir books
|
|
cd books
|
|
# Then we can download all books downloaded so far.
|
|
adb pull sdcard/Android/data/ru.libappc/files/book/
|
|
```
|
|
|
|
Once book directory with ton of zip files is loaded, we can run the script:
|
|
|
|
```bash
|
|
python main.py -i books/20818--lord-of-the-mysteries --volume 5 -c ~/vol-5-cover.png
|
|
```
|
|
|
|
You can see all volumes by running:
|
|
```
|
|
ls | grep "v*.zip" | cut -d'-' -f1 | sort -u
|
|
```
|
|
|
|
It should show you all volume numbers with `v` prefix.
|
|
|
|
## External Images
|
|
|
|
By default all external images E.G. which have `src` that starts with `http` are stripped from the final book.
|
|
However, we can fetch those using `--fetch-images` argument.
|
|
|
|
### Rate limits
|
|
|
|
In case if you want to avoid being rate limited, then start tor with provided torrc.
|
|
|
|
```
|
|
tor -f torrc &
|
|
python main.py -i books/20818--lord-of-the-mysteries -c ~/cover.jpg --fetch-images --tor-ports 9000,9001,9002,9003,9004
|
|
```
|