Skip to content

Latest commit

 

History

History
65 lines (39 loc) · 1.39 KB

README.md

File metadata and controls

65 lines (39 loc) · 1.39 KB

Composing Program PDF

About The Project

This is python script that converts the composing program website into a pdf file.

(back to top)

Getting Started

To generate the pdf, follow the steps list below.

Prerequisites

This the following software is required for this project.

  1. python3

  2. chrome / chromium browser with dependencies installed

Installation

  1. Install Chrome

    wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
    sudo apt install ./google-chrome-stable_current_amd64.deb
    
  2. Clone the repo

    git clone https://github.com/klementng/composing-programs-pdf.git
  3. Install python packages

    pip install -r requirements.txt

(back to top)

Usage

Simply run the following commands to generate the PDF file:

python main.py

Customization

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.)

(back to top)