• Stars
    star
    139
  • Rank 262,954 (Top 6 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created over 12 years ago
  • Updated over 12 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Headless WebKit with JavaScript API .. but reimplemented in python

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! :)

More Repositories

1

pdfparanoia

pdf watermark removal library for academic papers
Python
531
star
2

nanoengineer

open-source nanotech CAD
Python
271
star
3

diyhpluswiki

a wiki for do-it-yourself biohacking, open source hardware and transhuman tech
Roff
162
star
4

python-vaults

Prototype bitcoin vault: cold storage and theft minimization
Python
53
star
5

docker-basenode

Docker service discovery where applications in each container route traffic through localhost haproxy to connect to other services in the cluster. Don't hardcode IP addresses.
Python
40
star
6

skdb

open source hardware package management system (apt-get for real stuff)
Python
37
star
7

webcash

Webcash is an experimental "e-cash" (electronic cash). See https://webcash.org/
Python
34
star
8

brlcad

BRL-CAD is an open source solid modeling system with more than 20 years of active development.
C
32
star
9

paperbot

IRC bot for fetching papers/pdfs on IRC using phenny
Python
29
star
10

python-wmi-client-wrapper

Linux-only wrapper around wmi-client for WMI (Windows)
Python
27
star
11

pyscholar

python Google Scholar wrapper, likes to pretend it's zotero
Python
19
star
12

wiremound-pcr

an $85 arduino thermocycler
Arduino
15
star
13

culture_shock

Open-source electroporator for genetic transformation and other culturally shocking activities.
HTML
15
star
14

python-requestions

Serialization for python-requests based on JSON.
Python
14
star
15

pokemon-prism

Source code for Pokémon Prism
Assembly
14
star
16

ezproxy-urls

a list of ezproxy urls
12
star
17

python-brlcad

Open-source solid modeling in python
Python
11
star
18

pyconfd

Auto update config files from consul or etcd.
Python
10
star
19

python-deathbycaptcha

python api for deathbycaptcha.com (packaged)
Python
10
star
20

freedce

A free implementation of DCE RPC, with development aimed at implementing DCOM for Linux (and other UNIX systems).
C
9
star
21

modelo

absurdly simple models for python
Python
9
star
22

vba-linux

VBA emulator (GB/GBC/GBA) for Linux, forked from vba-rerecording v23.5
C++
8
star
23

bitcoin-incentives

Textual enumeration of incentives related to Bitcoin software.
TeX
8
star
24

python-vba-wrapper

python ctypes wrapper for the VBA emulator
Python
8
star
25

streak

disregard
7
star
26

netmorph

simulator for generative neuronal networks with realistic neuron morphologies
C++
6
star
27

laser_etcher

a laser cutter for microfluidics
6
star
28

djangit

git wiki in python/django (renaming of pydjangitwiki)
JavaScript
5
star
29

rpcblockchainexplorer

Lightweight local RPC blockchain explorer (web application)
Python
5
star
30

pokecrystal-demo

24-hour ROM hack (Pokémon Crystal)
Assembly
4
star
31

papermonk

Academic paper downloader in JavaScript.
JavaScript
4
star
32

uncertainfuture

probability and the development of advanced technologies
Java
4
star
33

esolid

ESOLID performs boundary evaluation and B-rep intersection on solid models
C++
4
star
34

webcashjs

Webcash is an experimental e-cash (electronic cash). See https://webcash.org/
TypeScript
4
star
35

pokecrystal-demo2

24-hour ROM hack (Pokémon Crystal)
Assembly
3
star
36

ctypesgen

A pure-python wrapper generator for ctypes
Python
3
star
37

dpc2100-toolbelt

DPC2100 cable modem toolbelt
Python
3
star
38

impacket

pure-python reverse engineering of DCE/RPC and SMB
Python
3
star
39

enzymaticsynthesis

a roadmap for building a controlled polymerase
3
star
40

crunchbase-parser

This parser queries the Crunchbase API and downloads information about startups and their funding into a CSV
Python
2
star
41

solvespace

SolveSpace is a parametric 3d CAD program, intended primarily for mechanical drawing
C++
2
star
42

brain

transhuman's go at the brain
Python
2
star
43

python-graphsynth

tools for generative grammars and graphs (python "rewrite" of graphsynth)
Python
2
star
44

shelltrance

shell sessions from the future.
1
star
45

papermonk-downloader-plosone

plosone.org scraper for papermonk
JavaScript
1
star
46

bitcoin-reorg-compatibility-toy

Bitcoin reorg-compatibility service example.
Shell
1
star
47

pokemap

Map generator for Pokemon ROMs
Haskell
1
star