Skip to content
This repository has been archived by the owner on Dec 28, 2018. It is now read-only.

hggh/phantomjs-screenshots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create screenshots from websites via json jobfiles

This script creates screenshots from websites via PhantomJS

This script is used as backend for the Screener webapp.

JSON jobfile

{

"Output": "/tmp/foobar.png",

"ViewPort": "1280x1024",

"Url": "http://www.fotokasten.de",

"UserAgent": "HggH Screenshot System with PhantomJS",

"timeout": "15"

}

The configuration flags "UserAgent" and "timeout" are optional. default for "timeout" is 15 seconds.

PJS Configuration

Please use conf/pjs.example.conf as example configuration file.

PJS with Selenium Webdriver with PhantomJS

With PhantomJS >= 1.8 you can start PhantomJS with '''phantomjs --webdriver=127.0.0.1:8910'''.

After starting up PhantomJS, please set :selenium_phantomjs to true. So pjs will not start for every screenshot the phantomJS binary.

This feature requires to install the "selenium-webdriver" gem.

Contact?

Jonas Genannt / http://blog.brachium-system.net

About

Simple script, used via cron to create screenshots from webites. jobs are created via JSON files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published