amanuensis:从 Reddit 生成电子书的快速脚本

时间:2024-07-04 11:21:59
【文件属性】:

文件名称:amanuensis:从 Reddit 生成电子书的快速脚本

文件大小:10KB

文件格式:ZIP

更新时间:2024-07-04 11:21:59

Python

阿曼努阿曼 从 Reddit 生成电子书的快速脚本 获取 URL 和章节标题列表,返回带有 mainfest 和 ToC 的格式化 XHTML。 不是世界上最优雅的东西,但它可以完成工作 - 期待在不久的将来进行大量清理。 运行使用: python scripts/build_epub.py /path/to/layout.json 示例输入 JSON: { " title " : " The Complete Works of Someone " , " contents " : [{ " url " : " http://www.example.com/foo/bar/ " , " title " : " The Tale of Foo and Bar " }, { " url " : " http://www.example.com/gorillas/ "


【文件预览】:
amanuensis-master
----scripts()
--------build_epub.py(6KB)
--------tidy_html.py(5KB)
----json()
--------.gitkeep(1B)
----epub()
--------template()
----LICENSE(1KB)
----README.md(585B)
----cache()
--------.gitkeep(1B)
----.gitignore(24B)
----out()
--------.gitkeep(1B)

网友评论