Webkit based scriptable web browser for python.
Python HTML JavaScript CSS
View #128
Pull request Compare This branch is 18 commits behind dev.
Latest commit 3f6d9df Sep 3, 2015 @jeanphix Merge pull request #258 from MartinBorg/xvfb
Start xvfb process in Ghost instead of Session
Permalink
Failed to load latest commit information.
docs
ghost
tests
.gitignore Feature: added support for collecting popup (confirm/alert/prompt) me… Mar 25, 2013
.gitmodules
MANIFEST.in Fixes setup.py & MANIFEST.in Sep 19, 2012
README.rst Fix example typo Jul 27, 2015
setup.cfg
setup.py bump 0.1 Jan 12, 2015
tox.ini

README.rst

ghost.py

https://drone.io/github.com/jeanphix/Ghost.py/status.png

ghost.py is a webkit web client written in python:

from ghost import Ghost
ghost = Ghost()

with ghost.start() as session:
    page, extra_resources = session.open("http://jeanphix.me")
    assert page.http_status == 200 and 'jeanphix' in page.content

Installation

ghost.py requires either PySide (preferred) or PyQt Qt bindings:

pip install pyside
pip install ghost.py --pre

OSX:

brew install qt
mkvirtualenv foo
pip install -U pip  # make sure pip is current
pip install PySide
pyside_postinstall.py -install
pip install Ghost.py