Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Jordan Hansen
Jordan Hansen

Posted on • Originally published atjavascriptwebscrapingguy.com on

     

Getting Puppeteer working on Lambda.

Very frustrating slight echo in this video. Sorry!

Puppeteer on Lambda. Can it be done? Yes! I ended up using the chrome-aws-lambda package. It was still over the 50MB limit so I discovered that that limit does not apply when uploading from S3.

So I think the final workflow will be, upload to S3 and have that trigger an event to update the Lambda code.

Sweet!

After the video update. I was able to get it uploaded to s3 and then update the Lambda code all with one command. Here’s my package.json script:

"sendToLambda": "npm run zip && aws s3 cp function.zip s3://puppeteer-lambda-jordan && aws lambda update-function-code --function-name puppeteerTest --s3-bucket puppeteer-lambda-jordan --s3-key function.zip"
Enter fullscreen modeExit fullscreen mode

The postGetting Puppeteer working on Lambda. appeared first onJavascript Web Scraping Guy.

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Software engineer and javascript lover.I love the power of the web and getting the data from it with web scraping.
  • Location
    Eagle, ID
  • Education
    Boise State University
  • Work
    Software Engineer at Lenovo Software
  • Joined

More fromJordan Hansen

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp