<commit_before>#lknovel

Generate epub from http://lknovel.lightnovel.cn/

![iPhone截图](https://raw.github.com/bebound/lknovel/master/screenShot/total.png)

##Requirements

- [python3](http://www.python.org/getit/ "python3")
- [requests](http://docs.python-requests.org/en/latest/ "requests")
- [BeautifulSoup4](http://www.crummy.com/software/BeautifulSoup/ "BeautifulSoup4")

##Quick start

###lk2epub

`python3 lk2epub.py -uhttp://lknovel.lightnovel.cn/main/book/2664.html,http://lknovel.lightnovel.cn/main/book/2666.html`

Separate urls with `,`

add `-s` parameter to use single thread

![lk2epub截图](https://raw.github.com/bebound/lknovel/master/screenShot/1.PNG)

###GUIVersion

1. Url: Input urls, separate with '\n' ：

    `http://lknovel.lightnovel.cn/main/book/2664.html`

    `http://lknovel.lightnovel.cn/main/vollist/726.html`

2. Cover: You can use your own cover for each epub file.

    This script can batch download covers from bookwalker:[bookwalker.py](https://github.com/bebound/scripts)


<commit_msg>update for docopt<commit_after>#lknovel

Generate epub from http://lknovel.lightnovel.cn/

![iPhone截图](https://raw.github.com/bebound/lknovel/master/screenShot/total.png)

##Requirements

- [Python3](http://www.python.org/getit/)
- [requests](http://docs.python-requests.org/en/latest/)
- [BeautifulSoup4](http://www.crummy.com/software/BeautifulSoup/)
- [docopt](https://github.com/docopt/docopt)

##Quick start

###lknovel
`pip install -r requirements.txt`

    Usage:
        lknovel.py
        lknovel.py <url>... [-s] [-o | --output=<output_dir>] [-c | --cover=<cover_path>]
        lknovel.py -h | --help
        lknovel.py -v | --version
    
    Arguments:
        <url>                                      Novel url
    
    Options:
        -s                                         Single thread
        -o=<output_dir> --output=<output_dir>      Output folder
        -c=<cover_path> --cover=<cover_path>       Cover path
        -h --help                                  Show this screen
        -v --version                               Show version
    
    Examples:
        lknovel.py http://lknovel.lightnovel.cn/main/vollist/492.html -s
        lknovel.py http://lknovel.lightnovel.cn/main/book/1578.html -o d:/
    

![lknovel截图](https://raw.github.com/bebound/lknovel/master/screenShot/1.PNG)

###GUIVersion

1. Url: Input urls, separate with '\n' ：

    `http://lknovel.lightnovel.cn/main/book/1578.html`

    `http://lknovel.lightnovel.cn/main/vollist/492.html`

2. Cover: You can use your own cover for each epub file.

    This script can batch download covers from bookwalker:[bookwalker.py](https://github.com/bebound/scripts)



{'fraction_non_alphanumeric': 0.15404699738903394, 'fraction_numerical': 0.01678478179783663, 'mean_word_length': 2.5951742627345844, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 7, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '152210', 'n_tokens_mistral': 1023, 'n_tokens_neox': 953, 'n_words': 159}