GithubHelp home page GithubHelp logo

xuzhengyi1995 / renta_downloader Goto Github PK

View Code? Open in Web Editor NEW
46.0 5.0 16.0 16 KB

Download manga you rent from http://renta.papy.co.jp/

Python 100.00%
manga-downloader manga renta renta-downloader ebookrenta

renta_downloader's Introduction

Renta_Downloader

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.

How to Use

Now no need to find anything on the webpage, just put the cookie and url is ready for use.

  1. Install python packages pillow and threadpool.

    pip install Pillow
    pip install threadpool
  2. Change the imgdir in the main.py to indicate where to put the manga.

  3. 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.

    1. Open the page.
    2. Press F12.
    3. Click on the Network.
    4. Refresh the page.
    5. Find the first index.view request, click it.
    6. On the right, there will be a Request Headers, go there.
    7. Find the cookie:...., copy the string after the cookie:, paste to the main.py, YOUR_COOKIES_HERE
  4. 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.

  5. 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.

  6. After edit the program, run python main.py to run it.

Notice

  1. 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).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.