Metadata-Version: 2.4
Name: BookerMarkdownTool
Version: 2026.3.25.0
Summary: iBooker/ApacheCN 知识库抓取工具
Author-email: wizardforcel <wizard.z@qq.com>
License: The Star And Thank Author License (SATA)
        
        Copyright © 2019 ApacheCN(apachecn@163.com)
        
        Project Url: https://github.com/apachecn/BookerTrans
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in
        all copies or substantial portions of the Software. 
        
        And wait, the most important, you shall star/+1/like the project(s) in project url 
        section above first, and then thank the author(s) in Copyright section. 
        
        Here are some suggested ways:
        
         - Email the authors a thank-you letter, and make friends with him/her/them.
         - Report bugs or issues.
         - Tell friends what a wonderful project this is.
         - And, sure, you can just express thanks in your mind without telling the world.
        
        Contributors of this project by forking have the option to add his/her name and 
        forked project url at copyright and project url sections, but shall not delete 
        or modify anything else in these two sections.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
        THE SOFTWARE.
        
Project-URL: Homepage, https://github.com/DracoUnion/BookerMarkdownTool
Keywords: wiki,知识库,document,文档,crawler,爬虫
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: Other/Proprietary License
Classifier: Natural Language :: Chinese (Simplified)
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Text Processing :: Markup :: HTML
Classifier: Topic :: Software Development :: Documentation
Classifier: Topic :: Software Development :: Localization
Classifier: Topic :: Utilities
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Requires-Dist: pyquery
Requires-Dist: readability-lxml
Requires-Dist: pyyaml
Requires-Dist: EpubCrawler
Requires-Dist: imgyaso
Dynamic: license-file

# BookerMarkdownTool

iBooker/ApacheCN 知识库抓取工具

## 安装

通过pip（推荐）：

```
pip install BookerMarkdownTool
```

从源码安装：

```
pip install git+https://github.com/DracoUnion/BookerMarkdownTool
```

需要 Node 和`to-markdown`包。

## 使用说明

```
usage: BookerMarkdownTool [-h] [-v]
                          {download,download-batch,wiki-summary,summary,docs-summary,ren-md,account,tomd,fmt,opti-md,config-proj,cdrive-log,ext-pre,rec-pre,split,merge,code-comment,align,align-dir,mk-totrans,flatten,rec-trans,split-totrans,fix-title,filter-sense,dl-img,build,cp-img}
                          ...

iBooker WIKI tool

positional arguments:
  {download,download-batch,wiki-summary,summary,docs-summary,ren-md,account,tomd,fmt,opti-md,config-proj,cdrive-log,ext-pre,rec-pre,split,merge,code-comment,align,align-dir,mk-totrans,flatten,rec-trans,split-totrans,fix-title,filter-sense,dl-img,build,cp-img}
    download            download a page
    download-batch      download pages
    wiki-summary        generate wiki summary
    summary             generate summary
    docs-summary        generate docs summary
    ren-md              rename md fname
    account             account words
    tomd                html to markdown
    fmt                 format markdown and html
    opti-md             optimize markdown
    config-proj         config proj
    cdrive-log          convert cdrive log to md
    ext-pre             extract pre from md
    rec-pre             recover pre in md
    split               split md or html
    merge               merge mds
    code-comment        add comment to code
    align               align en and zh md
    align-dir           align en and zh md
    mk-totrans          en md to yml
    flatten             flatten dir
    rec-trans           zh yaml to md
    split-totrans       split too long en
    fix-title           fix md title
    filter-sense        filter sensitive words
    dl-img              download imgs
    build               build epub
    cp-img              copy imgs in mds

options:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
```

## 协议

本项目基于 SATA 协议发布。

您有义务为此开源项目点赞，并考虑额外给予作者适当的奖励。

## 赞助我们

![](https://home.apachecn.org/img/about/donate.jpg)

## 另见

+   [ApacheCN 学习资源](https://docs.apachecn.org/)
+   [计算机电子书](http://it-ebooks.flygon.net)
+   [布客新知](http://flygon.net/ixinzhi/)
