#!/usr/bin/env python3

from bs4 import BeautifulSoup
import sys

with open(sys.argv[1], "r") as f:
    tree = BeautifulSoup(f, 'html.parser')

for note in tree.find_all("div", class_ = "notes"):
    note.decompose()

print(tree)

Add script to remove notes
Add script to remove notes

The script can be used to remove the notes in a compiled presentation.
This is useful when publishing slides so the notes intended for the
presenter only are not published as well.
