Skip to content
Phantompy is a headless WebKit engine with powerful pythonic api build on top of Qt5 Webkit
C++ Python C
Branch: master
Clone or download
Latest commit ae25ddb Mar 20, 2014
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build Initial comit. May 18, 2013
docs Update installation guide on the documentation. Jul 7, 2013
lib Changes for capturing webpage and rendering it to PDF. Sep 26, 2013
misc Fixed wrong behavior on process events and now can navigate ... Jun 15, 2013
phantompy Changes for capturing webpage and rendering it to PDF. Sep 26, 2013
.gitignore
CMakeLists.txt Now install c++ library system wide (on /usr/lib) Jul 7, 2013
LICENSE.lgpl-2.1 Switch to qjson (first step for dual qt version (4.x and 5.x)) Jun 5, 2013
LICENSE.phantompy Switch to qjson (first step for dual qt version (4.x and 5.x)) Jun 5, 2013
LICENSE.qjson Switch to qjson (first step for dual qt version (4.x and 5.x)) Jun 5, 2013
MANIFEST.in Switch to qjson (first step for dual qt version (4.x and 5.x)) Jun 5, 2013
README.rst Add note on README. Mar 20, 2014
setup.py Increment version to 0.10 Jul 7, 2013
tests.py Remove evalueate method from webelement python apy... Jun 19, 2013

README.rst

Headless WebKit engine for Python

Phantompy is a headless scriptable WebKit engine with a clean pythonic api.

WARNING: This project is abandoned due big design problems (python always works outside the QT eventloop, that makes some thins like js events management very ugly and some other things impossible). I can give the project to any one that want continue the development.

Components

The package has two components:

  • C++/C library which exposes a on-demand api to Qt5/QtWebkit (libphantompy)
  • Python app that builds on top of libphantompy with ctypes

Tested with python: cpython-3.3, cpython-2.7 and pypy-2.0.1

Documentation

Partial documentation available on: https://phantompy.readthedocs.org/en/latest/

A lot of features are proof of concept and need more work.

Thanks

  • Benjamin Torsten Jolitz (@benjolitz) for the many ideas submitted.

FAQ

How truly headless is phantompy?

Thanks to Qt5 and QPA it's truly headless. You can run your apps without x11 with this environment variable:

export QT_QPA_PLATFORM=minimal
You can’t perform that action at this time.