Download manga you rent from http://renta.papy.co.jp/
[2020-02-01] Make it easier to use, add threadpool to make downloading faster
[2019-10-31] Changed to fit the new version of Renta.
Now no need to find anything on the webpage, just put the cookie and url is ready for use.
-
Install python packages pillow and threadpool.
pip install Pillow pip install threadpool
-
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 that now we should change the cookie each downloading! It means that one cookie for one manga for a period time. Change the manga, Change the cookie!Maybe no need to change, but if the program not work, you can try to refresh the cookies.
- Open the page.
- Press F12.
- Click on the Network.
- Refresh the page.
- Find the first index.view 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.
The URL is finished with index.view, here we use the manga 魔法使いの嫁.
This is the URL of the 魔法使いの嫁: https://dre-viewer.papy.co.jp/sc/view_jsimg2/sample/9-265205-84/FIX001/index.view
Just copy this URL to the
url
in main.py. -
About ebookrenta, the us website.
If you want to download ebookrenta, just do the same thing but change the url to the ebookrenta:http://us-dre4.ebookrenta.com/sc/view_jsimg2_en/3a2d4f07050062a785/9-671847-84/rbc1002/index.view
Remember the view_jsimg2_en is very important.
If you got some URL like:http://us-dre4.ebookrenta.com/sc/view_jsimg/689e8bd62ec792493d/9-535673-84/rbc1002/index.view, you must change the part view_jsimg to view_jsimg2_en, because this script is designed for the newer version of viewer.
-
After edit the program, run
python main.py
to run it.
- The
poolsize
by default is 5, it's already fast enough I think, you can change it but be careful that the server may ban your ip or account (I'm not sure, but be careful).