Giter Club home page Giter Club logo

headless-chrome's Introduction

Build Status Dependencies UpToDate Latest Version License
Build Status Dependencies UpToDate Maven Central License: MIT

Headless Chrome

Abstract

Google Chrome version 59+ contains a real headless mode with no need of any display like xvfb or vnc.

Usage

Repo

Just add the following maven central dependency.

SBT

Add dependency to build.sbt.

libraryDependencies += "software.reinvent" % "headless-chrome" % "x.y.z"

Maven

<dependency>
    <groupId>software.reinvent</groupId>
    <artifactId>headless-chrome</artifactId>
    <version>x.y.z</version>
</dependency

Guice Binding

If you use Guice for injections, just bind the Provider HeadlessChromeProvider.

Config

The config uses the typesafe config.

Path Description Default Required
webdriver.chrome.driver The path to the chromedriver binary bundled in resources
webdriver.chrome.binary The path to the chrome binary /usr/bin/google-chrome-unstable
chrome.window.size The window size as string: "width,height" "1920,1200"
webdriver.user.agent The user agent used in chrome default HeadlessChrome agent
chrome.headless Set true to run chrome in headless mode true

Chrome

Use Chrome version 60.

For Windows one could use the portable App from here.

ChromeDriver

Use the ChromeDriver version 2.31 which is available here.

headless-chrome's People

Contributors

ldaume avatar douglaz avatar ctyytc 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.