This is python script that converts the composing program website into a pdf file.
To generate the pdf, follow the steps list below.
This the following software is required for this project.
-
python3
-
chrome / chromium browser with dependencies installed
-
Install Chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo apt install ./google-chrome-stable_current_amd64.deb
-
Clone the repo
git clone https://github.com/klementng/composing-programs-pdf.git
-
Install python packages
pip install -r requirements.txt
Simply run the following commands to generate the PDF file:
python main.py
To modify the output pdf, you can edit the following files:
-
urls.py: Include / exclude links
-
html_processing: add more html post processing (to remove more section / etc.)