chromedriverautoinstall

package module
v0.0.0-...-2ce67f7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2023 License: MIT Imports: 6 Imported by: 0

README

ChromeDriver_AutoInstall

Porting of https://github.com/yeongbin-jo/python-chromedriver-autoinstaller to GoLang

Example

package main

import (
	"log"

	chromedriverautoinstall "github.com/nicolasrod/chromedriver_autoinstall"
)

func main() {
	// Check current Chrome version and if chromedriver does not exists or the version y older
	// than the version of Chrome, a new compatible chromedriver will be downloaded as
	// ./chromedriver
	err := chromedriverautoinstall.InstallChromeDriver("./chromedriver")
	if err != nil {
		log.Fatal(err)
	}
}

Documentation

Overview

Package chromedriver_autoinstall enables an easy way to check the installed version of Google Chrome/Chromium and installs, if it is not already, a compatible *chromedriver* binary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallChromeDriver

func InstallChromeDriver(cdriver_fullpath string) error

Checks and installs the *ChromeDriver* binary in *cdriver_fullpath*

Types

This section is empty.

Directories

Path Synopsis
internal
cdriver
Package cdriver contains auxiliary function
Package cdriver contains auxiliary function

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL