InMangaKindle

Descarga manga en español en diferentes formatos (PNG, PDF, EPUB, MOBI)

MIT License

Stars
51

Manga en Espaol para Kindle / Ebook

Spanish Manga for Kindle / Ebook

Instalar / Install

Python

: Las dependencias de Python se instalarn automticamente la primera vez que ejecutes el programa.

Tambin puedes instalarlas manualmente con el siguiente comando:

pip install --user -r dependencies.txt

A veces el comando para Python3 es pip3 en lugar de pip.

: Python dependencies will be installed automatically the first time you run the program.

Dependencies can also be installed manually with the following command:

pip install --user -r dependencies.txt

Sometimes dependencies command for Python3 is pip3 instead of pip.

Instalar / Will install:

MOBI / Kindle

Para convertir un manga al formato MOBI (Kindle) necesitars instalar KindleGen y aadirlo al PATH. Tienes dos formas de hacerlo:

Kindle Previewer 3

KindleGen est incluido en Kindle Previewer 3. Una vez descargado:

  • Windows: El instalador de Kindle Previewer aadir KindleGen al PATH automticamente.
  • Mac OSX: cp /Applications/Kindle\ Previewer\ 3.app/Contents/lib/fc/bin/kindlegen /usr/local/bin/kindlegen
Manualmente

Si no quieres descargar Kindle Previewer puedes descargar el binario kindlegen manualmente aqu. Una vez descargado:

  • Windows: Sigue estas instrucciones para aadir al PATH la carpeta donde hayas descargado kindlegen.
  • Mac OSX: mv ~/Descargas/kindlegen /usr/local/bin/kindlegen
SendToKindle

Puedes enviar tus captulos directamente al Kindle con la aplicacin SendToKindle.

PDF

En la conversin a PDF algunas imgenes pueden dar el error Exception: Refusing to work on images with alpha channel. Para corregir esto se debe eliminar la transparencia de estas imgenes. Puedes aadir la opcin --remove-alpha para hacerlo automticamente. Para que funcione debes instalar Wand + ImageMagick.

Uso

Tutorial en vdeo

A veces el comando python3 es simplemente python. Comprueba que la versin sea superior a 3.6 con python --version o python3 --version.

python3 manga.py -h

uso: manga.py [-h] [--chapters CHAPTERS] [--directory DIRECTORY] [--single]
                [--rotate] [--profile PROFILE] [--format FORMAT] [--fullsize]
                [--cache] [--remove-alpha]
                manga

parmetros posicionales:
 manga         ttulo del manga a descargar

parmetros opcionales:
 -h, --help       muestra este mensaje de ayuda (en ingls)
  --chapters CHAPTERS, --chapter CHAPTERS
            captulos a descargar. Formato: primero..ltimo o captulos
            con comas. Ejemplo: --chapters "3..last" descargar
            los captulos del 3 hasta el ltimo disponible.
            --chapter 3 descarga slo el captulo 3,
                        "3, 12" descarga el 3 y el 12, --chapters
                        "3..12, 15" descarga desde el 3 hasta el 12 y
            tambin el captulo 15. Si este argumento no se proporciona
            se descargarn todos los captulos disponibles.
 --directory DIRECTORY
                        directorio/carpeta para guardar las descargas. Por defecto: ./manga
 --single        empaqueta los captulos en un nico archivo. Si este parmetro no se proporciona
            cada captulo se crear en un fichero independiente.
 --rotate        rota las dobles pginas. Si este parmetro no se proporciona
            las dobles pginas se dividirn en dos pginas separadas.
 --profile PROFILE   Dispositivo (Opciones disponibles: K1, K2, K34, K578,
                        KDX, KPW, KV, KO, KoMT, KoG, KoGHD, KoA, KoAHD,
                        KoAH2O, KoAO) [Por defecto = KPW (Kindle Paperwhite)]
  --format FORMAT       Formato de salida (Opciones disponibles: PNG, PDF, MOBI, EPUB,
                        CBZ) [Por defecto = MOBI]. Si se selecciona PNG entonces no
            se har ninguna conversin.
 --fullsize       con este parmetro no se ajustar el tamao de las imgenes al perfil del dispositivo
 --cache               Utiliza las imgenes en local sin descargar ningn captulo (modo sin conexin)
  --remove-alpha        Elimina el canal alpha de las imagenes en la conversin a PDF usando ImageMagick

Qu perfil debo elegir?

Ejemplos

La resolucin de pantalla por defecto est ajustada para Kindle Paperwhite. Utiliza la opcin --profile para cambiar el perfil a tu dispositivo.

  • python3 manga.py "one piece" --chapters 880..last --single descargar los captulos desde el 880 hasta el ltimo disponible del manga One Piece y los empaquetar en un nico archivo MOBI
  • python3 manga.py "one piece" --chapters 880..last --format PDF --single hace lo mismo que el ejemplo anterior pero en formato PDF para leer en el ordenador
  • python3 manga.py "shingeki no kyojin" --chapter last --format EPUB descargar el ltimo captulo de Shingeki no Kyojin como EPUB
  • python3 manga.py "dragon ball" --chapters "1, 2, 8..11" descargar los captulos 1, 2, 8, 9, 10, 11 de Dragon Ball en diferentes archivos MOBI
  • python3 manga.py "one piece" --chapters 900..910 --single --rotate --cache utilizar los captulos descargados previamente para crear un archivo MOBI con los captulos del 900 al 910 de One Piece. Tambin girar las pginas dobles para verlas en horizontal en lugar de dos pginas diferentes.

Usage

Sometimes python3 command is just python. Check that your version is greater than 3.6 with python --version or python3 --version.

python3 manga.py -h

usage: manga.py [-h] [--chapters CHAPTERS] [--directory DIRECTORY] [--single]
                [--rotate] [--profile PROFILE] [--format FORMAT] [--fullsize]
                [--cache] [--remove-alpha]
                manga

positional arguments:
  manga                 manga to download

optional arguments:
  -h, --help            show this help message and exit
  --chapters CHAPTERS, --chapter CHAPTERS
                        chapters to download. Format: start..end or chapters
                        with commas. Example: --chapters "3..last" will
                        download chapters from 3 to the last chapter,
                        --chapter 3 will download only chapter 3, --chapters
                        "3, 12" will download chapters 3 and 12, --chapters
                        "3..12, 15" will download chapters from 3 to 12 and
                        also chapter 15. If this argument is not provided all
                        chapters will be downloaded.
  --directory DIRECTORY
                        directory to save downloads. Default: ./manga
  --single              merge all chapters in only one file. If this argument
                        is not provided every chapter will be in a different
                        file
  --rotate              rotate double pages. If this argument is not provided
                        double pages will be splitted in 2 different pages
  --profile PROFILE     Device profile (Available options: K1, K2, K34, K578,
                        KDX, KPW, KV, KO, KoMT, KoG, KoGHD, KoA, KoAHD,
                        KoAH2O, KoAO) [Default = KPW (Kindle Paperwhite)]
  --format FORMAT       Output format (Available options: PNG, PDF, MOBI,
                        EPUB, CBZ) [Default = MOBI]. If PNG is selected then
                        no conversion to e-reader file will be done
  --fullsize            Do not stretch images to the profile's device
                        resolution
  --cache               Avoid downloading chapters and use already downloaded
                        chapters instead (offline)
  --remove-alpha        When converting to PDF remove alpha channel on images
                        using ImageMagick Wand

Which profile should I choose?

Examples

Default screen resolution is for Kindle Paperwhite device profile. Use option --profile to change the profile to your device.

  • python3 manga.py "one piece" --chapters 880..last --single will download One Piece chapters from 880 to the last chapter available and pack them into one single MOBI file
  • python3 manga.py "one piece" --chapters 880..last --format PDF --single will result in the same as above but in PDF instead MOBI
  • python3 manga.py "shingeki no kyojin" --chapter last --format EPUB will download the last chapter of Shingeki no Kyojin as EPUB
  • python3 manga.py "dragon ball" --chapters "1, 2, 8..11" will download chapters 1, 2, 8, 9, 10, 11 of Dragon Ball as different MOBI files
  • python3 manga.py "one piece" --chapters 900..910 --single --rotate --cache will reuse chapters previously downloaded to create a new MOBI file with One Piece chapters from 900 to 910. Double pages will be rotated to read horizontally instead of two splitted pages.
Badges
Extracted from project README
ko-fi