• Stars
    star
    302
  • Rank 138,030 (Top 3 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created over 8 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

epub comic generator | nhentai.net | e-hentai.org | wnacg.org

Comicbook

convert comic to .epub e-book.

Install

$ pipenv sync

Usage

$ pipenv run python comicbook.py --comic https://nhentai.net/g/{id}/
$ pipenv run python comicbook.py --comic http://g.e-hentai.org/g/{gid}/{token}/
$ pipenv run python comicbook.py --comic http://wnacg.org/photos-view-id-{aid}.html
$ pipenv run python comicbook.py --help

Webapp

$ pipenv run uvicorn --host 127.0.0.1 --port 5000 webapp:app

# run server and bot.
$ pipenv run python comicbook.py --server --telegram-bot

Celery task worker

$ pipenv run celery -A crawler worker -l INFO

Docker Deploy Note

Docker Compose deploy structure

➜  comicbook_project tree -L 1
.
β”œβ”€β”€ comicbook # Project Git Repo
β”œβ”€β”€ comicbook-calibre-web # Project Git Repo
β”œβ”€β”€ comicbook-calibre-web_data # Persistent Data
β”œβ”€β”€ comicbook-calibre-worker # Project Git Repo
β”œβ”€β”€ comicbook-calibre-worker_data # Persistent Data
β”œβ”€β”€ comicbook_data # Persistent Data
└── docker-compose.yml # Docker Compose configuration

6 directories, 1 file

example docker-compose.yml

version: '3'

services:
  comicbook:
    container_name: comicbook
    build:
      context: ./comicbook
      dockerfile: ./Dockerfile
    expose:
      - 8080
    ports:
      - 5000:8080
    volumes:
      - <CALIBRE_LIBRARY>:/usr/src/app/library
      - ./comicbook_data/storage:/usr/src/app/storage
      - ./comicbook_data/config.py:/usr/src/app/config.py
    networks:
      - mongodb_default
  comicbook-calibre-worker:
    container_name: comicbook-calibre-worker
    build:
      context: ./comicbook-calibre-worker
      dockerfile: ./Dockerfile
    networks:
      - mongodb_default
    volumes:
      - <CALIBRE_LIBRARY>:/usr/src/app/library
      - ./comicbook-calibre-worker_data/config.js:/usr/src/app/config.js
      - ./comicbook_data/storage/comic/nhentai.net:/usr/src/app/storage/nhentai
      - ./comicbook_data/storage/comic/ehentai.org:/usr/src/app/storage/ehentai
      - ./comicbook_data/storage/comic/wnacg.org:/usr/src/app/storage/wnacg
  comicbook-calibre-web:
    container_name: comicbook-calibre-web
    build:
      context: ./comicbook-calibre-web
      dockerfile: ./Dockerfile
    volumes:
      - <CALIBRE_LIBRARY>:/data/DATA/comicbook_library
      - ./comicbook-calibre-web_data/app.db:/usr/src/app/app.db
      - ./comicbook-calibre-web_data/gdrive.db:/usr/src/app/gdrive.db
    ports:
      - 5001:8083
networks:
  mongodb_default:
    external: true

example comicbook config.py

# ...

CALIBRE_LIBRARY_PATH = '/usr/src/app/library'

MONGODB_URL = 'mongodb://mongo:27017/'
REDIS_URL = 'redis://redis:6379/0'

# ...

example comicbook-calibre-worker config.js

module.exports = {
	  libraryPath: '/usr/src/app/library',
	  nhentaiDir: '/usr/src/app/storage/nhentai',
	  ehentaiDir: '/usr/src/app/storage/ehentai',
	  wnacgDir: '/usr/src/app/storage/wnacg',
	  mongodbUrl: 'mongodb://mongo:27017/comicbook',
}

PS: You should create your own mongodb docker container.

LICENSE

Comicbook is published under GPL 3.0 License. See the LICENSE file for more.

More Repositories

1

animeloop-cli

Automatically detect and cut anime loops.
C++
96
star
2

waifu2x-ncnn-vulkan-macos

As its long long name suggested.
Objective-C++
79
star
3

PixivForMuzeiPlus

Muzei Live Wallpaper's Source for Pixiv
Java
38
star
4

EVA-icon

EVA Shito web icon font.
HTML
16
star
5

comicepub

digital comic epub3 generator
Python
12
star
6

moeoverflow

wow such moe!
9
star
7

mach3-cli

Recursively parse, index and search subtitle text.
Python
8
star
8

manga-image

show manga image without white background.
JavaScript
8
star
9

Araisan

A data cleaning module inspired by γ‚’γƒ©γ‚€γ•γ‚“ο½ž
Python
6
star
10

press_release_DCA_EPUB3_zh

Chinese translation for press_release_DCA_EPUB3
6
star
11

loop-roi

a tool for editing short loop video
C++
6
star
12

animeloop-server

Server for animeloop.org
JavaScript
6
star
13

animeloop-server-ts

Animeloop server based on Typescript
TypeScript
4
star
14

Animeme

Short video editor
JavaScript
4
star
15

RikkaKichiku

macOS screen saver with Animeloop kichiku
Swift
4
star
16

animeloop-web-nuxt

Animeloop web app, built with Nuxt.js
Vue
3
star
17

animeloop-ios

Animeloop for iOS
Swift
3
star
18

animeloop-illus2vec

illustration2vec script for Animeloop
Python
2
star
19

moeoverflow.com

webapp for moeoverflow.com
TypeScript
2
star
20

animeloop-doc

Documentation for animeloop
HTML
2
star
21

longest-animeloop-cli

Different from animeloop-cli, this repo aims at founding the longest loop in given duration instead of finding all possible loop.
C++
2
star
22

animeloop-wallpaper

animeloop for wallpaper engine.
JavaScript
1
star
23

animeloop-cli-deprecated

anime loop
C++
1
star