Skip to content

kevsersrca/lambda-selenium-layer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Structure

── /lambda-selenium-layer/
  ├── /selenium
  │  └──/python/
  │   └── /lib/
  │     └── /python3.6/*
  ├── /chromedriver/
  │ ├── /chromedriver
  │ └── /headless-chromium
  └── /serverless.yaml

For selenium installation

# download Selenium 2.37
$ pip3.6 install -t selenium/python/lib/python3.6/site-packages selenium=2.37

Manual Instalation

# download chrome driver
$ mkdir chromedriver
$ cd chromedriver
$ curl -SL https://chromedriver.storage.googleapis.com/2.37/chromedriver_linux64.zip > chromedriver.zip
$ unzip chromedriver.zip
$ rm chromedriver.zip
$ curl -SL https://github.com/adieuadieu/serverless-chrome/releases/download/v1.0.0-41/stable-headless-chromium-amazonlinux-2017-03.zip > headless-chromium.zip
$ unzip headless-chromium.zip
$ rm headless-chromium.zip

Stack

Deploy Lambda Layers

Go to root directory of project

$ cd seleniumLayer
$ sls deploy

Releases

No releases published

Packages

No packages published