Code Monkey home page Code Monkey logo

juejinxiaocetopdfbypy's Introduction

juejinxiaoceToPDFByPy

将掘金小册制作成一整本PDF

由来

之前写过一个Golang的版本,但是阅读效果不是特别好,这个Python版本可以将所有章节制作成单个PDF文件。看起来会更加方便,转mobi格式的正在开发,遇到一点小问题,使用的kindle_maker库报错。如果想要在kindle上观看小册,可以使用这个工具将PDF转为mobi。

使用方法

  • 参照 https://github.com/hantmac/juejinxiaoceToMobi 的README,获取你想要转换的小册的idclient_iduidtoken、等信息,按照ini文件的格式填入conf.ini
  • pip3 install -r requirements.txt (环境为Python3)
  • python run.py
  • 等待片刻,即可出炉 🍺

注意事项

  • conf.ini中的bookName千万不能含有中文,不然PDF会乱码
  • 使用的pdfkit,可能会比较慢
  • 如果中间报错,很可能是没有安装 wkhtmltopdf,按照官方教程进行安装
  • Mac OS在安装过程中遇到一个错误 Error: Permission denied @ dir_s_mkdir - /usr/local/Caskroom/wkhtmltopdf,查了一下,解决方案是:sudo chown -R $(whoami):staff ~/Library/Caches/Homebrew /usr/local/Caskroom/

效果预览

juejinxiaocetopdfbypy's People

Contributors

hantmac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

juejinxiaocetopdfbypy's Issues

给找不到account id的同学

感恩,终于不用一个一个慢慢翻了

找不到account id的同学可以
在dev panel里面的 network,刷新小测,
搜索 https://xiaoce-cache-api-ms.juejin.im/v1/getSection 然后打开这个链接
里面会有所有的信息
id其实是 metaId

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.