Coder Social home page Coder Social logo

mrparabol / ghost.py Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeanphix/ghost.py

0.0 1.0 0.0 1.09 MB

Webkit based scriptable web browser for python.

Home Page: http://ghost-py.readthedocs.org/en/latest/

Dockerfile 0.54% Python 89.60% JavaScript 2.24% CSS 1.39% HTML 6.23%

ghost.py's Introduction

ghost.py

Build Status

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 PySide2 Qt5 bindings.

The most convenient way to run ghost is to use the official docker image.

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')
...
(<ghost.ghost.HttpResource object at 0x7f3a118fa128>, [<ghost.ghost.HttpResource object at 0x7f3a118fa128>, <ghost.ghost.HttpResource object at 0x7f3a118fa0f0>, <ghost.ghost.HttpResource object at 0x7f3a118fa160>, <ghost.ghost.HttpResource object at 0x7f3a118ec4e0>, <ghost.ghost.HttpResource object at 0x7f3a118ecfd0>])

ghost.py's People

Contributors

2-5 avatar adrianrego avatar ahmedshafeeq avatar akhomchenko avatar amyodov avatar andreycizov avatar arikfr avatar asdil12 avatar bm371613 avatar evasdk avatar jeanphix avatar kanzure avatar kijewski avatar kravietz avatar marcolin avatar marcospri avatar mpkuth avatar mrozekma avatar msabramo avatar osleg avatar oxydros avatar radarhere avatar romanofski avatar scorphus avatar stringfellow avatar terinjokes avatar the-shank avatar unicornlox avatar vaskivo avatar walshb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.