comics-archiver/lezhin
2023-03-20 22:09:28 +00:00
..
auth lezhin/auth: check env vars are set 2020-06-27 10:36:47 -07:00
download.js lezhin: don't unset user-agent 2023-03-20 22:09:28 +00:00
readme.md break tappytoon, unbreak lezhin 2022-12-17 05:28:22 +00:00

lezhin

log in and go to the series page for the comic you want to archive. pop open the web inspector and grab your token from __LZ_CONFIG__. Save __LZ_PRODUCT__ in its entirey as a json file.

TOKEN=<token> PRODUCT_JSON=path/to/product.json node download.js

to combine into a pdf, install poppler and run something like this:

for dir in *; pushd $dir; for img in *.webp; convert $img (basename $img webp)pdf; end; pdfunite *.pdf ../$dir-combined.pdf; popd; end