AWS Lambdaでのスクレイピング用Pythonスクリプト実行環境構築手順(Dockerを使います)AWS Lambdaでのテスト実行方法任意ワードのGoogle検索結果上位10のURLを取得するスクレイピングコード(Python) 現在私は、SEOライティングのリサーチ自動化プログラムを開発中です。言語はPythonで、SeleniumとHeadless Chromeを使ってスクレイピングします。 サーバー管理が面倒なのでAWS Lambdaを使ってサーバーレス環境から実行させます。このプログラムを作った経験と知見を記事にまとめました。 「開発プロセスの中で私がハマった点」「web検索結果上位の記事にはまとまりきっていないと感じた情報」を、初心者でも分かりやすいよう解説します。 この記事ではAWS Lambdaの実行環境をDockerで用意するので、そもそもDockerを使ったことが