hkjn / phantomjs

Scriptable Headless Browser

Home Page:http://phantomjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PhantomJS - Scriptable Headless WebKit

PhantomJS (phantomjs.org) is a headless WebKit scriptable with JavaScript. The latest stable release is version 2.1.

  • this is a fork of phantomjs, since upstream suspended development
  • we added a Dockerfile to document the dependencies, tested on macOS Monterey 12.0.1 with Apple M1 chip
    • build the image with docker build -t phantomjs .
    • run phantomjs in a container like docker run --name c1 -it phantomjs examples/rasterize.js https://duckduckgo.com duck.png
    • copy out resulting image with docker cp c1:/build/duck.png .

Use Cases

  • Headless web testing. Lightning-fast testing without the browser is now possible!
  • Page automation. Access and manipulate web pages with the standard DOM API, or with usual libraries like jQuery.
  • Screen capture. Programmatically capture web contents, including CSS, SVG and Canvas. Build server-side web graphics apps, from a screenshot service to a vector chart rasterizer.
  • Network monitoring. Automate performance analysis, track page loading and export as standard HAR format.

Features

  • Multiplatform, available on major operating systems: Windows, Mac OS X, Linux, and other Unices.
  • Fast and native implementation of web standards: DOM, CSS, JavaScript, Canvas, and SVG. No emulation!
  • Pure headless (no X11) on Linux, ideal for continuous integration systems. Also runs on Amazon EC2, Heroku, and Iron.io.
  • Easy to install: Download, unpack, and start having fun in just 5 minutes.

Questions?

PhantomJS is free software/open source, and is distributed under the BSD license. It contains third-party code, see the included third-party.txt file for the license information on third-party code.

PhantomJS is created and maintained by @ariyahidayat, with the help of many contributors.

About

Scriptable Headless Browser

http://phantomjs.org

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C++ 39.3%Language:JavaScript 29.4%Language:C 24.4%Language:Python 5.8%Language:HTML 0.7%Language:Shell 0.2%Language:CMake 0.2%Language:Dockerfile 0.1%Language:CSS 0.0%