ghost.py is a webkit web client written in python:
from ghost import Ghost ghost = Ghost() page, extra_resources = ghost.open("http://jeanphix.me") assert page.http_status==200 and 'jeanphix' in ghost.content
ghost.py requires either PySide (prefered) or PyQt Qt bindings:
pip install pyside pip install ghost.py --pre