Giter Club home page Giter Club logo

pyphantomjs's Introduction

PyPhantomJS is a headless WebKit with JavaScript API, based on the PhantomJS project.

It has fast and native support for DOM handling, CSS selector, JSON, Canvas, SVG, and of course JavaScript.

PyPhantomJS scripts can be written in JavaScript or CoffeeScript.

See the quick start guide and more advanced examples which show various PhantomJS scripts, covering:

  • running regression tests from command line
  • getting driving direction
  • showing weather forecast conditions
  • finding pizza in New York
  • looking up approximate location based on IP address
  • pulling the list of seasonal food
  • producing PDF version of a Wikipedia article
  • rasterizing SVG to image

PyPhantomJS is written in PyQt4 and Python. It runs on Linux, Windows, and Mac OS X. Refer to the INSTALL file or Wiki links1 for more information.

Do not forget to consult the concise API Reference2

If you want to contribute, please read the Contribution Guides3

You can find a list of downloadable plugins here.

If you would like to know how to make plugins, check out this article.

1: http://code.google.com/p/phantomjs/w/list 1: http://dev.umaclan.com/projects/pyphantomjs/wiki 2: http://dev.umaclan.com/projects/pyphantomjs/wiki/Api_reference 2: http://code.google.com/p/phantomjs/wiki/Interface 3: http://code.google.com/p/phantomjs/wiki/ContributionGuide 3: http://dev.umaclan.com/projects/pyphantomjs/wiki/Giving_back

LICENSING

Copyright (C) 2011 James Roe <[email protected]> Copyright (C) 2011-2012 PyPhantomJS authors (see AUTHORS file)

PyPhantomJS is licensed with the GNU GPL v3. See the included file LICENSE for the licensing terms.

ADDITIONAL INFO

This program is a port of PhantomJS to Python/PyQt4 (thus, PyPhantomJS).

  1. We try to make PyPhantomJS to be as compatible with PhantomJS as possible, this means having the exact same features as they do. It happens to be fully compatible, with the exception of some very small things.
  2. PyPhantomJS however, has a few differences as well:
    • Some of the features work a little differently than PhantomJS. In most of these cases, the features were only changed to improve their reliability and performance, so they work more often/better, and break less.
    • There may also be additional features present that aren't in PhantomJS.
  3. For whatever reason, PyPhantomJS was deleted from the upstream PhantomJS library, so this separate repository was created. The old commit ids have been kept in tact to facilitate referencing back to the upstream versions.

PhantomJS was written by Ariya Hidayat, and I'd like to give him a BIG thanks for all his work on PhantomJS! :)

pyphantomjs's People

Contributors

fsouza avatar ariya avatar kanzure avatar mscottford avatar milianw avatar

Watchers

James Cloos 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.