Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeanphix/Ghost.py
Webkit based scriptable web browser for python.
https://github.com/jeanphix/Ghost.py
Last synced: 3 days ago
JSON representation
Webkit based scriptable web browser for python.
- Host: GitHub
- URL: https://github.com/jeanphix/Ghost.py
- Owner: jeanphix
- Created: 2011-11-21T19:40:24.000Z (over 12 years ago)
- Default Branch: dev
- Last Pushed: 2024-02-24T12:17:27.000Z (4 months ago)
- Last Synced: 2024-06-18T18:52:16.682Z (11 days ago)
- Language: Python
- Homepage: http://ghost-py.readthedocs.org/en/latest/
- Size: 1.03 MB
- Stars: 2,768
- Watchers: 109
- Forks: 380
- Open Issues: 143
-
Metadata Files:
- Readme: README.rst
Lists
- awesome-stars - Ghost.py - Webkit based scriptable web browser for python. (Python)
- awesome-stars - jeanphix/Ghost.py - Webkit based scriptable web browser for python. (Python)
- awesome-stars - Ghost.py - Webkit based scriptable web browser for python. (Python)
- awesome-stars - jeanphix/Ghost.py - Webkit based scriptable web browser for python. (Python)
- awesome-stars - jeanphix/Ghost.py - Webkit based scriptable web browser for python. (Python)
- alex-mikhalev-awesome-stars - Ghost.py - Webkit based scriptable web browser for python. (Python)
- my-awesome-stars - jeanphix/Ghost.py - Webkit based scriptable web browser for python. (Python)
- project-awesome - jeanphix/Ghost.py - Webkit based scriptable web browser for python. (Python)
- awesome-stars - jeanphix/Ghost.py - `★2767` Webkit based scriptable web browser for python. (Python)
README
ghost.py
========.. image:: https://travis-ci.org/jeanphix/Ghost.py.svg?branch=master
:target: https://travis-ci.org/jeanphix/Ghost.py
:alt: Build Statusghost.py is a webkit web client written in python:
.. code:: 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.contentInstallation
------------ghost.py requires PySide2_ Qt5_ bindings.
The most convenient way to run ghost is to use the official docker image.
.. code:: bash
docker run -i -t jeanphix/ghost.py:2.0.0-dev python3
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from ghost import Ghost
>>> g = Ghost()
>>> with g.start() as session:
... session.open('http://jeanphix.me')
...
(, [, , , , ]).. _PySide2: https://wiki.qt.io/PySide2
.. _Qt5: https://www.qt.io/developers/