umihico / docker-playwright-lambda

The simplest demo of chrome automation by Node.js and playwright in AWS Lambda

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-playwright-lambda

badge badge

This is minimum demo of chrome automation by Node.js and playwright in AWS Lambda

This image goes with these versions. These are automatically updated and tested everyday.

  • Node.js v20.14.0
  • Chromium 127.0.6533.17
  • Playwright 1.45.2

Running the demo

$ npm install -g serverless@^3 # skip this line if you have already installed Serverless Framework
$ export AWS_REGION=ap-northeast-1 # You can specify region or skip this line. us-east-1 will be used by default.
$ sls create --template-url "https://github.com/umihico/docker-playwright-lambda/tree/main" --path docker-playwright-lambda && cd $_
$ sls deploy
$ sls invoke --function demo # Yay! You will get texts of example.com

Side Projects

Are you interested in Python or Selenium? Please check out docker-selenium-lambda

If you don't want to create functions each time for each purpose, Please check out pythonista-chromeless

About

The simplest demo of chrome automation by Node.js and playwright in AWS Lambda


Languages

Language:JavaScript 52.8%Language:Dockerfile 47.2%