使用可读性解析器api生成web上文章的干净html和pdf文档
polygot的Python项目详细描述
多边形
将文档和网页转换为各种标记语言和文档格式(html、epub、mobi…)。
用法
*CL tool for polygot* :Author: David Young :Date Created: September 28, 2015 Usage: polygot url <urlToParse> <destinationFolder> [-s <pathToSettingsFile>] -h, --help show this help message -v, --version show version -s, --settings the settings file urlToParse the url of the article to parse and convert to PDF destinationFolder the folder to add the parsed PDF to
文档
polygot的文档由Read the Docs(最后一个stable version和latest version)托管。
安装
安装polygot us最简单的方法是使用pip:
pip install polygot
或者您可以克隆github repo并从本地版本的代码安装:
git clone git@github.com:thespacedoctor/polygot.git
cd polygot
python setup.py install
要升级到最新版本的Polygot,请使用以下命令:
pip install polygot --upgrade
发展
如果您想修改代码,请在开发模式下安装。 这意味着您可以修改克隆的repo中的代码:
git clone git@github.com:thespacedoctor/polygot.git
cd polygot
python setup.py develop
Pull requests 欢迎!
问题
请报告任何问题 here。
许可证
版权所有(c)2016 David Young
特此免费向任何获得 本软件和相关文档文件的副本 “软件”),无限制地处理软件,包括 但不限于使用、复制、修改、合并、发布, 分发、再授权和/或出售软件副本,以及 允许向其提供软件的人员这样做,但须遵守 以下条件:
上述版权公告及本许可公告须包括在内 在软件的所有副本或大部分中。
软件按“原样”提供,不作任何形式的保证 或默示的,包括但不限于 适销性、适合特定目的和不侵权。 在任何情况下,作者或版权持有人均不对任何 索赔、损害赔偿或其他责任,无论是在合同诉讼中, 侵权行为或其他,由 软件或软件中的使用或其他交易。