Coder Social home page Coder Social logo

acgonzales / comickaze Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 98 KB

A package to search and download comics on ReadComicsOnline.ru

License: MIT License

Python 99.60% Batchfile 0.40%
comics comic-downloader comics-scraper marvel dc readcomiconline python python3

comickaze's Introduction

Comickaze

A package to search and download comics on ReadComicsOnline.ru.

Installation

pip install Comickaze

Usage

CLI

Download

Usage: comickaze download [OPTIONS]

  Download Comics

Options:
  -q, --query TEXT
  -o, --output-format [cbz|pdf|jpg]
                                  The file format of the downloaded comics.
  -d, --download-dir DIRECTORY    Download directory.
  --delete-original               Set to false if you want to keep the images
                                  before it was converted.

  -t, --threads INTEGER           Number of threads to use while download a
                                  chapter.

  --daemon BOOLEAN                Sets the daemon value of the threads.
  -ll, --log-level [DEBUG|VERBOSE|ERROR]
                                  Sets the logger's log level.
  --help                          Show this message and exit.

As a Package

from comickaze import Comickaze, Converter

# You dont need this, for testing purposes only
import random

download_dir = "download_dir"

c = Comickaze(log_level="VERBOSE")

# Searching
search_results = c.search_comics("Deadpool") # Returns a list of Suggestion object
random_suggestion = random.choice(search_results)

# Getting Comic info, returns Comic object
# Getting comic info from Suggestion object
comic = random_suggestion.get_comic()

# Getting comic info from URL
comic = c.get_comic("https://readcomicsonline.ru/comic/batman-the-adventures-continue-2020")

# Downloading Comic Chapters
# Output format choices: CBZ, PDF, IMG
download_dir = "download_dir"
output_format = Converter.CBZ

normal_downloader = c.create_downloader(comic.chapters, number_of_threads=1, output_format=output_format)
multithreaded_downloader = c.create_downloader(comic.chapters, number_of_threads=8, output_format=output_format)

# normal_downloader.start(download_dir)
multithreaded_downloader.start(download_dir)

TODO:

  • CLI
  • More CLI features
  • More sources.

comickaze's People

Contributors

acgonzales avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

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.