#!/usr/bin/env python3 import argparse import html import json import re import shutil import subprocess import sys import tempfile from pathlib import Path HERE = Path(__file__).resolve().parent WIDTH, HEIGHT = 1024, 500 BROWSERS = ("chromium-browser", "chromium", "google-chrome", "google-chrome-stable") PAGE = """