Casvt / Kapowarr

Kapowarr is a software to build and manage a comic book library, fitting in the *arr suite of software.
https://casvt.github.io/Kapowarr/
GNU General Public License v3.0
467 stars 20 forks source link

Add z-library source #171

Open elblanco5 opened 3 months ago

elblanco5 commented 3 months ago

Problem

getcomics.org is great, but doesn't have everything I'm looking for

Solution

  1. Z-Library

Z-library mirrors often has specific issues and graphic novels of comics. (though usually in PDF or some ebook format like epub which is fine for many readers and book servers). However, I don't know if it has an official API access to download things. It appears that there is an unofficial API Python library.

  1. Archive.org

Archive.org also often has old, rare, or foreign comics, often already converted into a number of formats.

For example, many comics for Archive.org can be found here

Many other books are available by specific search, but need to be temporarily checked out to view. This extension is able to download these books once checked out

The Internet Archive does offer an official Python library as well.

Additional context

Understanding that z-library has multiple mirrors, it may be necessary to allow users to configure Kapowarr with a list of working mirrors themselves before any downloading can function.

Archive.org is also likely to require two different download methods, the official Python library method (easier) and then maybe some kind of headless Chromium browser running the downloader script supplied above as it looks like it just flips all the pages in the book, downloads each image, and then runs some kind of pdf builder to assemble the final book.

Casvt commented 3 months ago

This seems like a lot of work, for a seemingly small amount of "relevant" comics that are not already on GC. I could be wrong though, please correct me if so.

Implementing z-library doesn't look that hard; the library you linked is so small and simple that I can just write it all myself. It's a simple "search and process results". And downloading is basically just direct downloading. Only challenge is the handling of mirrors and the API key.

The internet archive looks a lot more complicated and time consuming to implement and make work properly.

I'll probably not implement the internet archive. I will probably implement z-library, but not very soon. For sure not before the next release.

elblanco5 commented 3 months ago

Sounds great, and obviously neither is high priority. Just thought it might be useful to gather the information for those sources in one place.