Skip to content

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

Notifications You must be signed in to change notification settings

klementng/composing-programs-pdf

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages