Anpanator / jnc-downloader

A python script to automatically (pre-)order books and download them from your J-Novel.club library.
The Unlicense
8 stars 5 forks source link

"To be honest, this would probably be nicer to implement in python" #1

Closed holatuwol closed 4 years ago

holatuwol commented 4 years ago

Based on your comment, decided to rewrite it in Python as a contribution. Thanks for researching the API!

holatuwol commented 4 years ago

Force pushed some changes, since I forgot to run the code through a pep8 checker.

holatuwol commented 4 years ago

Used the wrong author email, so re-pushed with a different email address.

holatuwol commented 4 years ago

Got it, re-added logic that mimics what you have in jnc.sh

holatuwol commented 4 years ago

Got it, I've set allow_redirects=False and I've moved the code that marks a book as downloaded to after the status code check to match jnc.sh.