/docker-selenium-lambda

Minimum demo of headless chrome and selenium on container image on AWS Lambda

Primary LanguageDockerfileMIT LicenseMIT

docker-selenium-lambda

This is minimum demo of headless chrome and selenium on container image on AWS Lambda

This image goes with these versions.

  • Python 3.9
  • chromium 95.0.4638.0
  • chromedriver 95.0.4638.69
  • selenium 4.0.0

Running the demo

$ export AWS_REGION=ap-south-1 # You can specify region or skip this line. us-east-1 will be used by default.
$ sls create --template-url "https://github.com/akilude/docker-selenium-lambda/tree/main" --path docker-selenium-lambda && cd $_
$ sls deploy
$ sls invoke --function demo # Yay! You will get texts of example.com

Side Project

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

Credits

https://github.com/umihico/docker-selenium-lambda/