Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Webkit based scriptable web browser for python.
Python HTML JavaScript CSS
Branch: dev

Merge pull request #246 from socrateslee/print-without-full-page

Print with full page mode only when margin is not (0, 0, 0, 0)
latest commit fb6afb6e6e
@jeanphix authored

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
Something went wrong with that request. Please try again.