Skip to content

Instantly share code, notes, and snippets.

View michaelfranzl's full-sized avatar

Michael Franzl michaelfranzl

View GitHub Profile
@michaelfranzl
michaelfranzl / phantom.py
Created October 16, 2017 09:41
Simple but fully scriptable headless QtWebKit browser using PyQt5 in Python3, specialized in executing external JavaScript and generating PDF files. A lean replacement for other bulky headless browser frameworks.
#!/usr/bin/python3
"""
# phantom.py
Simple but fully scriptable headless QtWebKit browser using PyQt5 in Python3,
specialized in executing external JavaScript and generating PDF files. A lean
replacement for other bulky headless browser frameworks.