Python (selenium) Lambda Chromium Automation (naming pending)
PyChromeless allows to automate actions to any webpage from AWS Lambda. The aim of this project is to provide the scaffolding for future robot implementations.
All the process is explained here. Technologies used are:
Install docker and dependencies:
To make local development easy, you can use the included docker-compose.
Have a look at the example in
lambda_function.py: it looks up “21 buttons” on Google and prints the first result.
Run it with:
Building and uploading the distributable package
Everything is summarized into a simple Makefile so use:
- Upload the
build.zipresulting file to your AWS Lambda function
- Set Lambda environment variables (same values as in docker-compose.yml)
- Adjust lambda function parameters to match your necessities, for the given example:
- Timeout: +10 seconds
- Memory: + 250MB