Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

A python script that converts https://www.composingprograms.com/ into a PDF file. With Original CSS, internal link, highlight pages

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages