Skip to content

Aliyun FC function that takes a screenshot of a webpage, using puppeteer.

License

Notifications You must be signed in to change notification settings

rgglez/fc-webpage-screenshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fc-webpage-screenshot

License GitHub all releases GitHub issues GitHub commit activity

This is a microservice written in Javascript for Aliyun Function Compute NodeJS FaaS that makes a screenshot of a web page, using puppeteer and chromium.

The URL of the page to be screenshoted is passed via query parameter in the URL of the function.

/webpage-screenshot?url=https://www.example.com

The JPEG image of the captured screen will be returned.

Notes

  • A Dockerfile is provided as a guide. You might need to customize it.
  • The FC is working in Web Server mode, so express is used.

License

Copyright (c) 2023 Rodolfo González González.

Read the LICENSE file.

About

Aliyun FC function that takes a screenshot of a webpage, using puppeteer.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published