Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/umihico/docker-playwright-lambda
The simplest demo of chrome automation by Node.js and playwright in AWS Lambda
https://github.com/umihico/docker-playwright-lambda
Last synced: about 2 months ago
JSON representation
The simplest demo of chrome automation by Node.js and playwright in AWS Lambda
- Host: GitHub
- URL: https://github.com/umihico/docker-playwright-lambda
- Owner: umihico
- Created: 2024-02-01T14:14:32.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-10-17T02:22:05.000Z (3 months ago)
- Last Synced: 2024-10-19T04:38:00.312Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 57.6 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-playwright-lambda
[![badge](https://github.com/umihico/docker-playwright-lambda/actions/workflows/demo-test.yml/badge.svg)](https://github.com/umihico/docker-playwright-lambda/actions/workflows/demo-test.yml)
[![badge](https://github.com/umihico/docker-playwright-lambda/actions/workflows/auto-update.yml/badge.svg)](https://github.com/umihico/docker-playwright-lambda/actions/workflows/auto-update.yml)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.](https://github.com/umihico/docker-playwright-lambda/actions)
- Node.js v20.18.0
- Chromium 130.0.6723.31
- Playwright 1.48.2## Running the demo
```bash
$ 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](https://github.com/umihico/docker-selenium-lambda)
If you don't want to create functions each time for each purpose, Please check out [pythonista-chromeless](https://github.com/umihico/pythonista-chromeless)