PhantomJS is a headless web browser scriptable with JavaScript. It runs on Windows, macOS, Linux, and FreeBSD.
Using QtWebKit as the back-end, it offers fast and native support for various web standards: DOM handling, CSS selector, JSON, Canvas, and SVG.
The following simple script for PhantomJS loads Google homepage, waits a bit, and then captures it to an image.
var page = require('webpage').create(); page.open('http://www.google.com', function() { setTimeout(function() { page.render('google.png'); phantom.exit(); }, 200); });
PhantomJS is an optimal solution for:
Ready to play with PhantomJS? Install and follow the Quick Start guide.
Want to learn more? Read the FAQ, explore more examples, and study the complete API documentation.
For the source code, issue tracker, and other development information, visit github.com/ariya/phantomjs.
'Open Sources > ETC' 카테고리의 다른 글
Locust Sample Code (0) | 2018.11.27 |
---|---|
locust 관련 정보 (0) | 2017.08.25 |
Kali Linux (칼리 리눅스) (0) | 2016.10.11 |
Vagrant (0) | 2016.07.20 |
Slack (0) | 2016.07.11 |
댓글