GithubHelp home page GithubHelp logo

liluxdev / phantomjs-screenshots Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hggh/phantomjs-screenshots

0.0 2.0 0.0 73 KB

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

phantomjs-screenshots's Introduction

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

phantomjs-screenshots's People

Contributors

hggh avatar knorrium avatar

Watchers

James Cloos avatar Stefano Gargiulo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.