Please check Manga_downloader, it has the same or even more function, Bookwalker_Downloader may no longer be maintained. Thank you.
还请尽量使用新版的Manga_downloader,该程序拥有相同甚至更多功能,Bookwalker_Downloader可能不会再进行维护。谢谢。
Download manga you rent from https://bookwalker.jp/
No need to find anything on the webpage, just put the cookie and url is ready for use.
This program now work for Chrome, if you use another browser, please check this page
-
Install python packages selenium and get the Google chrome Drivers.
- For selenuim:
pip install selenium
-
Change the
IMGDIR
in the main.py to indicate where to put the manga. -
Add your cookies in the program.
Remember to use F12 to see the cookies!
Because some http only cookies can not be seen by javascript!
Remember to go here to get the cookies!
- Open the page.
- Press F12.
- Click on the Network.
- Refresh the page.
- Find the first profile request, click it.
- On the right, there will be a Request Headers, go there.
- Find the cookie:...., copy the string after the cookie:, paste to the main.py, YOUR_COOKIES_HERE
-
Change the url in the main.py.
First go to 購入済み書籍一覧, you can find all your mangas here.
This time the URL is the URL of 'この本を読む' button for your manga.
Right click this button, and click 'Copy link address'.
The URL is start with member.bookwalker.jp, not the viewer.bookwalker.jp. Here we use the manga 【期間限定 無料お試し版】あつまれ!ふしぎ研究部 1.
This is the URL of the あつまれ!ふしぎ研究部 1: https://member.bookwalker.jp/app/03/webstore/cooperation?r=BROWSER_VIEWER/640c0ddd-896c-4881-945f-ad5ce9a070a6/https%3A%2F%2Fbookwalker.jp%2FholdBooks%2F
Just copy this URL to the
MANGA_URL
in main.py. -
After edit the program, run
python main.py
to run it.
-
The
SLEEP_TIME
by default is 2 seconds, you can adjust it with your own network situation, if the downloading has repeated images, you can change it to 5 or more. If you think it's too slow, try change it to 1 or even 0.5. -
Keep the
DEBUG = False
, now it works with headless Chrome after changing theUser-Agent
. -
if you want to login manually, please set theMANUAL_LOGIN = True
, and input the email and password, click the login button. Then the program will detect you have login and continue running.Now with headless Chrome, we can only login with cookies.
-
LOADING_WAIT_TIME = 20
, this is the time to wait until the manga viewer page loaded, if your network is not good, you can set it to 30 or 50 seconds. -
Resolution, you can change it as you want, but check the original image resolution first.
RES = (784, 1200)
If the original image has a higher resolution, you can change it like this (The resolution is just a example).
RES = (1568, 2400)
-
Some time we should log out and log in, this website is very strict and take so many method to prevent abuse.
-
Now you can cut the image by setting
CUT_IMAGE
at line 35 to (left, upper, right, lower).For example you want to cut 3px from the bottom of image, you can set it to:
CUT_IMAGE = (0, 0, 0, 3)
This function use
Pillow
, if you want to use it, you should install it by using the command:pip install Pillow
By default it is
None
, means do not cut the image, and no need to installPillow
.
中文站点为:https://www.bookwalker.com.tw
-
可用于中文站点,
MANGA_URL
为线上阅读页面的“阅读”按钮,一般URL类似:https://www.bookwalker.com.tw/browserViewer/56994/read -
COOKIES
请前往个人专页,按照上述方法复制COOKIES。 -
RES
的寻找方法相同,中文站点部分漫画分辨率较高,例如小邪神飞踢的原始分辨率为RES = (1393, 2048)
。 -
如果出现 【The eBook chosen cannot be viewed. Please sign-out, then sign-in again. (ERROR998)】 ,还请使用浏览器先退出登陆,再次登陆,并使用浏览器确认该漫画可正常浏览后,更新Cookies再试。
-
如果出现 【The eBook chosen cannot open since not yet purchaesd. Please make a purchase and try again.】 , 还请先确认是否已经购买该漫画,再确认Cookies的获取是否为使用
F12
获取,请不要使用JavaScript获取Cookies,因为部分重要Cookies会被设置为http only,这部分Cookies是无法用JavaScript获取到的。