Skip to content

unfunk/Ghost.py

 
 

Repository files navigation

Ghost.py

Ghost.py is a webkit web client written in python

Example

from ghost import Ghost
gh = Ghost()
gpage, name = gh.create_page()
gpage.open("http://www.google.com")
gpage.capture_to("/tmp/google.png")

Full Documentation

The full documentation can be found in the following link

Alternative Branch

This branch has a big restructuration of Ghost.py. Improve problems like speed, memory and concurrency. If you want to see the changes please referer to the following wiki:

History

24/03/2013
  • Added the option to redirect Qt Framework messages to python logging system. Based on pull request jeanphix#70 . Thanks to @asdil12
#How to enable debug messages (QT included)
import logging
gh = Ghost(qt_debug=True, log_level=logging.DEBUG)

... Do Something else with ghost
21/03/2013
15/03/2013
10/03/2013

Past changes

  • Support for Popups
  • Support for Fast Open Example
  • Sopport for selective download Example
  • Support for cache Example
  • Added new method to switch beetween frames.
  • Added the option to capture an image from the webpage and save it into a PDF file Example
  • Added support for connection via proxy
  • Added a "download" method that save the webpage content into a file Example

About

Webkit based scriptable web browser for python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 57.6%
  • Python 36.5%
  • HTML 2.1%
  • Makefile 2.0%
  • Batchfile 1.8%