Grab the contents of the gitbook document and convert it to pdf
Python
1,067
92 commits
updated Aug 6, 2022
Simple but powerful tools for converting gitbook pages to pdf.
Asynchronous grab
Use aiohttp to grab
Can be in a few seconds the data capture.
Grab the text can be replicated

Save the original directory structure

Retain the original hyperlinks

Because it need to use weasyprint for pdf generation but pip can't complete weasyprint installation, so you need to install it manually. it's weasyprint install tutorial If you don't want install install dependencies you can use made of su Yang docker image
pip install -r requirements.txt
python gitbook.py {url}
python gitbook.py http://self-publishing.ebookchain.org
Results generated by the CSS to define if you want to add other styles can modify gitbook.css.
👤 fuergaosi233
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Using weasyprint to generate pdf files will compare eating memory
Please pay attention to whether your own memory is enough
101 followers · starred Mar 2019
557 followers · starred Mar 2019
Grab the contents of the gitbook document and convert it to pdf
Python
1,067
92 commits
updated Aug 6, 2022
Simple but powerful tools for converting gitbook pages to pdf.
Asynchronous grab
Use aiohttp to grab
Can be in a few seconds the data capture.
Grab the text can be replicated

Save the original directory structure

Retain the original hyperlinks

Because it need to use weasyprint for pdf generation but pip can't complete weasyprint installation, so you need to install it manually. it's weasyprint install tutorial If you don't want install install dependencies you can use made of su Yang docker image
pip install -r requirements.txt
python gitbook.py {url}
python gitbook.py http://self-publishing.ebookchain.org
Results generated by the CSS to define if you want to add other styles can modify gitbook.css.
👤 fuergaosi233
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Using weasyprint to generate pdf files will compare eating memory
Please pay attention to whether your own memory is enough
101 followers · starred Mar 2019
557 followers · starred Mar 2019