<commit_before># Manga Downloadr

[![Build Status](https://travis-ci.org/akitaonrails/manga-downloadr.svg)](https://travis-ci.org/akitaonrails/manga-downloadr)
[![Code Climate](https://codeclimate.com/repos/54ac0c066956802e06000ffb/badges/441f1f6af106cc32b2b5/gpa.svg)](https://codeclimate.com/repos/54ac0c066956802e06000ffb/feed)
[![Test Coverage](https://codeclimate.com/repos/54ac0c066956802e06000ffb/badges/441f1f6af106cc32b2b5/coverage.svg)](https://codeclimate.com/repos/54ac0c066956802e06000ffb/feed)

I just bought a new Kindle Paperwhite and so happens it's the perfect form factor
to read good old, black and white, mangas.

So I decided to automate the process of fetching manga images from MangaReader.net,
optimize and compile them into PDF files that fit the Kindle resolution.

## Installation

Just install with:

```
gem install manga-downloadr
```

## Usage

And then execute:

    $ manga-downloadr -n berserk -u http://www.mangareader.net/96/berserk.html -d /MyDocuments/MyMangas

If there's any interruption (bad network) you can run the same command line again and it will resume from
where it was interrupted before.

If you want to restart from scratch, delete the "/tmp/[your manga].yml" that saves the current workflow state.<commit_msg>Adding how to setup an environment for manga-downloadr.<commit_after># Manga Downloadr

[![Build Status](https://travis-ci.org/akitaonrails/manga-downloadr.svg)](https://travis-ci.org/akitaonrails/manga-downloadr)
[![Code Climate](https://codeclimate.com/repos/54ac0c066956802e06000ffb/badges/441f1f6af106cc32b2b5/gpa.svg)](https://codeclimate.com/repos/54ac0c066956802e06000ffb/feed)
[![Test Coverage](https://codeclimate.com/repos/54ac0c066956802e06000ffb/badges/441f1f6af106cc32b2b5/coverage.svg)](https://codeclimate.com/repos/54ac0c066956802e06000ffb/feed)

I just bought a new Kindle Paperwhite and so happens it's the perfect form factor
to read good old, black and white, mangas.

So I decided to automate the process of fetching manga images from MangaReader.net,
optimize and compile them into PDF files that fit the Kindle resolution.

## Installation

Setup your environment with:

```
sudo apt-get install -y \
    libgraphicsmagick1-dev \
    libmagickcore-dev \
    libmagickwand-dev \
    ruby-dev \
    zlib1g-dev

sudo gem install bundler
```

And install manga-downloadr with:

```
gem install manga-downloadr
```

## Usage

And then execute:

    $ manga-downloadr -n berserk -u http://www.mangareader.net/96/berserk.html -d /MyDocuments/MyMangas

If there's any interruption (bad network) you can run the same command line again and it will resume from
where it was interrupted before.

If you want to restart from scratch, delete the "/tmp/[your manga].yml" that saves the current workflow state.
{'fraction_non_alphanumeric': 0.10140237324703344, 'fraction_numerical': 0.06832074793239842, 'mean_word_length': 4.856842105263158, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6658791', 'n_tokens_mistral': 1082, 'n_tokens_neox': 928, 'n_words': 256}