Translate documents and webpages to various markup languages and document formats(HTML,EPUB,Mobi…)

pypolyglot的Python项目详细描述


多基因座图片::http://i.imgur.com/eifudpp.png
:宽度:300 px


*一个python包和命令行工具,用于将文档和网页转换为各种标记语言和文档格式(html、epub、mobi…)。

图片::https://readthedocs.org/projects/pypolyglot/badge/
:目标:http://pypolyglot.readthedocs.io/en/latest/?徽章
:alt:文档状态

…图片::https://cdn.rawgit.com/thespacedoctor/polyglot/master/coverage.svg
:目标:https://cdn.rawgit.com/thespacedoctor/polyglot/master/htmlcov/index.html
:alt:coverage status






include::类和函数。rst


命令行用法
==


…代码块::bash




polyglot[-oc](pdf html epub mobi)<;url>;[<;destinationfolder>;-f<;filename>;-s<;pathtosettingsfile>;]
polyglot kindle<;url>;[-f<;filename>;-s<;pathtosettingsfile>;]
polyglot[-o](epub mobi)<;docx>;[<;destinationfolder>;-f<;filename>;-s<;pathtosettingsfile>;]
polyglot kindle<;docx>;[-f<;filename>;-s<;pathtosettingsfile>;]
polyglot[-o]kindlenb2md<;notebook>;[<;destinationfolder>;-s<;pathtosettingsfile>;]

选项:
init首次设置polyglot设置文件
pdf打印网页到pdf
html解析和下载网页到本地HTML文档
ePub从网页URL生成ePub格式的书籍
Kindle将网页文章直接发送到Kindle

-h,-help显示此帮助消息
-v,--版本显示版本
-o,--创建后打开文档
-c,--clean将polyglot的干净样式添加到输出文档
<;url>;文章网页的url
<;docx>;docx文件的路径
-s<;pathtosettingsfile>;,--settings<;pathtosettingsfile>;其他设置文件的路径(可选)
<;destinationfolder>;要将已分析的pdf或html文档保存到的文件夹(可选nal)
-f<;file name>;,--filename<;filename>;要保存的文件的名称,否则使用网页标题作为文件名(可选)




documentation
==




…代码::bash

pip install polyglot

或者您可以克隆"github repo<;https://github.com/thespacedoctor/polyglot>;``并从本地版本的代码安装:

…代码::bash

git clone git@github.com:spacedoctor/polyglot.git
cd polyglot
python setup.py install

代码::bash





development
--


如果要修改代码,请在开发模式下安装。
这意味着您可以修改克隆repo中的代码:

。代码::bash

git clone git@github.com:thespacedoctor/polyglot.git
cd polyglot
python setup.py develop

`pull requests<;欢迎使用https://github.com/thespacedoctor/polyglot/pulls>;`\

sublime snippets
~~~~~~~~~~~~~~~~~~

-片段>;``有用。

问题
----

请报告任何问题
`here<;https://github.com/thespacedoctor/polyglot/issues>;` `。


许可证
==


软件和相关文档文件(即"软件"),无限制地处理软件,包括但不限于使用、复制、修改、合并、发布、分发、再许可和/或出售软件副本的权利,以及提供软件是为了这样做,但须遵守以下条件:


上述版权声明和本许可声明应包含在软件的所有副本或实质性部分中。

默示的,包括但不限于以下保证:
适销性、特定用途的适用性和不侵权。
在任何情况下,作者或版权所有者均不对任何
索赔、损害赔偿或其他责任负责,无论是在合同诉讼中,
侵权或其他情况下,由
软件或软件中的使用或其他交易产生、产生或与之相关。






欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Java程序运行时错误   JavaAndroidStudio:与往常一样,四舍五入到next.5或.0   apache使用Java以表单数据形式上载文件   带矢量的java Freeflight相机如何正确旋转?   java如何以编程方式检索有关当前项目的语言、操作系统、体系结构等信息   java Twitter4J tweet实体?   java PdfBox编码异常   java在拖动未装饰的舞台时,如何强制光标停留在窗口上   JavaSpring注释扫描优化   java无法通过IntelliJ Idea在tomcat上运行服务   java在生命周期中如何拦截请求?   java中的数组返回错误