(FORK, works with unmodified Qt 5.3) Scriptable Headless WebKit
 
 
 
 
 
 
Go to file
Danny Wang 15ac9ab291 fixed TypeError when call e.url in page.onResourceRequested handler
http://code.google.com/p/phantomjs/issues/detail?id=305
2011-12-13 16:39:09 +08:00
debian The python package is arch: all 2011-07-03 22:11:08 +02:00
deploy Add patches 2011-11-15 22:29:59 -05:00
examples basic unit testing for WebServer.listen 2011-11-15 13:45:11 +01:00
python Add arguments to pyphantomjs.main(). 2011-12-11 13:07:06 -08:00
src fixed TypeError when call e.url in page.onResourceRequested handler 2011-12-13 16:39:09 +08:00
test Passed test results failed count as exit code 2011-11-29 11:39:09 +02:00
.gitignore Debian packaging 2011-07-03 21:47:50 +02:00
ChangeLog Add a bug fix to the changelog 2011-11-05 21:10:46 -07:00
LICENSE.BSD Long live PhantomJS! 2010-12-26 19:49:33 -08:00
README.md Minor rewording. 2011-10-04 21:41:35 -07:00
phantomjs.pro Import the old, working prototype. 2010-12-26 20:15:19 -08:00

README.md

PhantomJS (www.phantomjs.org) is a headless WebKit with JavaScript API.

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

PhantomJS is cross-platform, it can be compiled for Linux, Windows, FreeBSD, and Mac OS X. Refer to the build instructions for details.

Note: If you are on Mac OS X, read the notice before you start using brew or port to install Qt and/or PhantomJS.

PhantomJS scripts can be written in JavaScript or CoffeeScript.

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

  • 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
  • running regression tests from command line
  • producing PDF version of a Wikipedia article
  • rasterizing SVG to image

Do not forget to consult the concise API Reference.

PhantomJS is based on Qt. There are two implementations, using C++ and Python.

The latest stable release is version 1.3 ("Water Lily").

If you want to contribute, please read the Contribution Guide.